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: Modify Enum Type Values
Topic Summary: Modify Enum Type Vals
Created On: 30-Nov-2005 14:58
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 Reik Schroeder, on Monday, December 5, 2005 9:23 AM

Answer:
Hi Tarun,

I did something you want to do a long time ago, but I try to remember

The function you will need is
AttrType modify(AttrType at, string newName, string strings[], int values[], int colors[], int mapping[], string &errmsg)

It is of cause not described in DXL reference manual

But be very carefull by using that function, it can remove values from Enum-Type as you want. But when this removed value is used in some Objects it will be reset to default value - without any entry in history!

See attached code for an example of usage for your case ...

I hope, that's you need

Greetings

Reik Schröder
 30-Nov-2005 14:58
User is offline View Users Profile Print this message


Tarun Inabathuni

Posts: 59
Joined: 18-Jan-2005

Hi All

Iam trying to modify values for a enumeration type using DXL
but when i use modify command i get a message that the type is in use

does any one have experience in modifying enumeration type values using DXL

i.e the present values for a type say at={"new","old","deleted"}

i want to change it to at={"new","old"}

it is happening when i do it from the normal DOORS menu
but i need to do it on many modules using a script
any help is appreciated

Regards
Tarun
Report this to a Moderator Report this to a Moderator
 1-Dec-2005 11:04
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Answer Answer
Hi Tarun,

I did something you want to do a long time ago, but I try to remember

The function you will need is
AttrType modify(AttrType at, string newName, string strings[], int values[], int colors[], int mapping[], string &errmsg)

It is of cause not described in DXL reference manual

But be very carefull by using that function, it can remove values from Enum-Type as you want. But when this removed value is used in some Objects it will be reset to default value - without any entry in history!

See attached code for an example of usage for your case ...

I hope, that's you need

Greetings

Reik Schröder

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


Berlin, Germany
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.