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: Change Enums
Topic Summary:
Created On: 21-Aug-2006 19:47
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-Aug-2006 19:47
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Anybody figure out how to use DXL to add an enumeration to an existing in-use Attribute Type?

- Louie
Report this to a Moderator Report this to a Moderator
 21-Aug-2006 20:28
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

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


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Thanks, I'll give it a try.
Report this to a Moderator Report this to a Moderator
 23-Aug-2006 09:05
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Louie,

you could also refer to my post
here

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 24-Aug-2006 15:37
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.