![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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) | |
![]() |
|
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?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Modification of attribut types in DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.