![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Change Enums Topic Summary: Created On: 21-Aug-2006 19:47 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Anybody figure out how to use DXL to add an enumeration to an existing in-use Attribute Type?
- Louie |
|
![]() |
|
![]() |
|
Louie,
The following should solve your problem, note the extra undocumented parameter in the modify command and the alternative modify command (probably better to provide the mapping array directly). I haven't checked the excerpt works so may have introduced a typo, I'm sure you'll figure it out though. Apologies for the bizarre variable names, RVM and RM are the abbreviations for module types used in the company I'm working from, RVM's are created/ updated from RM's. ------------------------- Regards, Richard Good Edited: 21-Aug-2006 at 20:32 by Richard Good |
|
![]() |
|
![]() |
|
Thanks, I'll give it a try.
|
|
![]() |
|
![]() |
|
Hi Louie,
you could also refer to my post here Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
WOW, Thanks guys. I just had need of changing (adding enumerations) an existing Enumerated Type in 470 separate modules and was NOT looking forward to having someone do it by hand. I was able to look at both of the DXLs you guy posted here, and quickly create a targeted DXL which I put in a loop to change the Type Enumerations in all modules.
It seems like every time I look for a way to do something in this forum one of you three guys has already done it (or something like it). My thanks to you. Once again, you have saved me lots of work! Some issues I found to be careful of when adding to or changing Enumerated Types. If you change the 'position' of a string or value you may (likely will) change the value assigned. (i.e. affect your data). So... I 1st created a little DXL that checked all 470 modules for the specific order of the Enumerations in the Type. I found a few modules that (over the years) people had apparently changed the enumeration order. I was able to quickly fix them to be the same as the rest of the Module Type definitions (which makes the required DXL way less complex). Then it was just a matter of running the new DXL program for all (matching) modules in the folder to add the new Types Enumerations. Worked like a charm!!! I would have likely been chewing on this problem for hours with the DXL manual.... Thanks Again for sharing your experience with the rest of us |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Change Enums
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.