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: Insert objects using identation "1.1.1", "1.1", etc
Topic Summary: Insert objects using paragraph style
Created On: 21-Nov-2007 13:10
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.
 21-Nov-2007 13:10
User is offline View Users Profile Print this message


Marco Gomes

Posts: 11
Joined: 4-Sep-2007

author: Marco Gomes <marco.gomes@edisoft.pt>

This is one way to insert objects in module DOORS using paragraph style.

Marco
Report this to a Moderator Report this to a Moderator
 21-Nov-2007 16:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Not going to pretend to understand your DXL. However, I think the variable 'ident' should be renamed 'ParaNum' (looks like "3.2.1.0-2"), since an object 'identifier' (looks like "SysReqs_1022") has a completely different meaning.

Anyway, you can fairly simply find the object that has the specified Paragraph Number, something like attached. Once you find the object you can insert, after or below as needed.

The problem is this: when deleted objects are NOT showing, deleted objects will have the exact same paragraph Number as their previous sibling (if any, deleted or undeleted); meaning ParaNums are NOT unique. When deleted objects ARE showing, undeleted object's paragraph number may change depending on how many Ancestors and Aunts/Uncle objects are deleted.

Thus, any script that deals with Paragraph Numbers should probably [1] turn showing-deleted objects off (current = mod; showDeletedObjects(false) [2] always ignore deleted objects. Thus the attached function should have a "if (isDeleted(obj)) continue" statement at the top of the loop.

- Louie
Report this to a Moderator Report this to a Moderator
 21-Nov-2007 17:02
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Here's a quick DXL that highlights the changing in paragraph numbers depending on whether Deleted objects are Showing or not. Create a small module with some hierarchy, delete a small handful of the objects (including at least one with a previous sibling), give the module a 'prefix' (so the identifier looks OK) and run the script.

The conclusion is this: using paragraph numbers to identify objects is not a good idea.

- Louie
Report this to a Moderator Report this to a Moderator
 22-Nov-2007 14:01
User is offline View Users Profile Print this message


Marco Gomes

Posts: 11
Joined: 4-Sep-2007

Thankyou for the excellent tips!

I'm using the paragraph approach because it is an requirement! I need to import a file with paragraph style lines into DOORS.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.