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 Enumarated type using DXL
Topic Summary: How to change enum type using DXL w/o loosing the content in the objects ??
Created On: 18-Sep-2008 15:30
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.
 18-Sep-2008 15:30
User is offline View Users Profile Print this message


Dan Melamed

Posts: 5
Joined: 21-May-2006

Hi

I would like to write code that will change the content of enumerated type
(take the enum from Module A and place it in Module B).

problems :
in Module B, there *are* attributes using the type that is about to be changed.
and there are values in it.

I tried using modify(AttrType .....) but it kills all current values - even when the actual value list does not change at all.

Please, Help ?
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 16:49
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

What I've done in the past in situations such as this, is:

- create a new attribute type with the desired enumerations.
- create a new attribute that utilizes the new attribute type.
- copy the selections from the old attribute to the new attribute.
- delete the old attribute and attribute type.
- rename the new attribute and attribute type to reflect the old one.

I think I may have had the same issue with the modify function, but I can't remember. It may have been prior to me finding the modify function and there might be something special you have to do to keep the current selections. I honestly am having a brain fart here and would have to go search through my scripts to find where I did this.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
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.