![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Copying and object levels Topic Summary: Created On: 19-Sep-2006 09:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I am copying information from one module and putting it into another module in a very specific format, however I still need to respect the object levels from the original module i.e. if I copy an object at lvl 4 and the next object is lvl 2, I want to put it after the last lvl 2 in the new module. Does anyone have a code snippet that handles this or maybe some pseudo code to explain the iteration process? (That's right, I'm not a programmer!!) Many thanks Neal |
|
![]() |
|
![]() |
|
look under \doors\lib\dxl\example\copyobj.dxl for an example
|
|
![]() |
|
![]() |
|
Just in case: understand you do not directly control an Object's Level. Inserting an object into a module requires [1] a reference object, and [2] command to either insert after (at same level) or below (at lower level). If an object is level 4 in your source module and you wish to insert it after a level 2 object in the target module, the inserted object will become level 3. To force it to level 4 you would first create a new object below the level 2 (it is created at level 3), then insert the level 4 below that one.
Also know that when you copy, cut, paste, or move an object you do that also to all its subordinate objects in the hierarchy. Caviates: if the module has no objects then the first object created becomes the top level in the module, which is level 1 and is neither below nor after any other object. To make an object the top object in the module, you can move it after the current top object, then move the current top object after the one you want to be the top. - Louie |
|
![]() |
|
![]() |
|
Thanks for the answers guys, I now have a working solution.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Copying and object levels
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.