Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Copying and object levels
Topic Summary:
Created On: 19-Sep-2006 09:53
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 19-Sep-2006 09:53
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

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
Report this to a Moderator Report this to a Moderator
 19-Sep-2006 16:22
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

look under \doors\lib\dxl\example\copyobj.dxl for an example
Report this to a Moderator Report this to a Moderator
 19-Sep-2006 21:01
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 20-Sep-2006 15:34
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Thanks for the answers guys, I now have a working solution.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.