![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Absolute Number Assignment Reversed? Topic Summary: Absolute Numbers for objects created in a loop are in descending order? Created On: 2-Jan-2008 21:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: THANKS! | |
![]() |
|
Hi folks,
I've only recently started using DOORS and DXL, this is my first post. Suppose you start with fresh module, and you use a simple loop to create some objects, Module mod = current Object NewOb for(z=0; z<10; z++) { NewOb = create(mod) } Ten objects will be created where the first object's ABS# is 10, the second object's ABS# is 9 and so on down the the last object getting the ABS# of 1. Does anyone know of a way to have the ABS#s ascend instead of descend in this type of scenario? I tried using "create before" and saw no difference... I recognize that absolute numbers are just unique IDs for DOORS' internal use and I acknowledge the warning: "... it is a bad idea to attempt to keep module "tidy" by having sequential identifiers - i have seen this many times and it always ends in tears."-Tony Goodman Thanks to all, especially the regular repliers whose answers and advice have helped a ton as I get to know DOORS all too well! Will |
|
![]() |
|
![]() |
|
Use "create last"
|
|
![]() |
|
![]() |
|
THANKS!
|
|
![]() |
|
![]() |
|
Yes, exactly. "create(mod)" creates the first object in mod; "any existing objects at level 1 are moved after the new object". You could also make the new objects after the old one:
Module mod = current Object NewOb NewOb = create(mod) for(z=1; z<10; z++) { NewOb = create(after(NewOb)) } Have fun learning! |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Absolute Number Assignment Reversed?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.