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: Modification of attribut types in DXL
Topic Summary: Adding a value to an enumerated type without losing data
Created On: 25-Apr-2008 20:39
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.
Answer This question was answered by Scott Boisvert, on Wednesday, July 9, 2008 2:47 PM

Answer:
There is a modify perm for attribute type in the DXL Reference manual, I think the version of the perm you're looking for is:

AttrType modify(AttrType type, string newName, string codes[ ], int values[ ], int colors[ ], string &errmess)
 25-Apr-2008 20:39
User is offline View Users Profile Print this message


Joshua Butts

Posts: 1
Joined: 29-Aug-2006

Say I have 3 possible values for an enumerated type. I want to add a fourth and fifth possible value to the attribute type, but I don't want to lose any attribute values that may be set for object attributes that use this type (and use one of the 3 original possible values). Doing this manually is a snap - simply add the values through the GUI. However, we have 40 modules with this attribute type, and doing it via DXL would be great (since I do this routinely). Unfortunately, I don't see any functions in the DXL Reference Manual that allow this. Does anyone have any ideas?
Report this to a Moderator Report this to a Moderator
 28-Apr-2008 06:50
User is offline View Users Profile Print this message


Frank Jensen

Posts: 24
Joined: 18-Sep-2007

Hi,

I would do it in an 'old fashioned' way, i.e. create a temporary attribute/ type, copy the values from the original attribute, remove the original attribute/ type and rename the newly created attribute/ type.

Hope to help,
Frank

-------------------------
Frank Jensen
TRW Automotive
frank.jensenREMOVE_ME@trw.com
Report this to a Moderator Report this to a Moderator
 28-Apr-2008 09:06
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

You might be lucky with the script posted in this thread.

Regards,

Peter
Report this to a Moderator Report this to a Moderator
 28-Apr-2008 12:35
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Answer Answer
There is a modify perm for attribute type in the DXL Reference manual, I think the version of the perm you're looking for is:

AttrType modify(AttrType type, string newName, string codes[ ], int values[ ], int colors[ ], string &errmess)

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 28-Apr-2008 at 12:36 by Scott Boisvert
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.