![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
author: Marco Gomes <marco.gomes@edisoft.pt>
This is one way to insert objects in module DOORS using paragraph style. Marco |
|
![]() |
|
![]() |
|
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) ![]() - Louie |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.