How to abstract the attribute description info

Hello all,

I am asked to write a script to open an window for user to put the attribute value in for a given object in a module. Since the attribute value needs to be in a certain format, the user asked to have the attribute description info displayed.

Can anyone help me to get the attribute description abstracted?

Thanks in advance!
DOORSUser - Mon Jun 25 16:12:06 EDT 2012

Re: How to abstract the attribute description info
SystemAdmin - Mon Jun 25 18:44:45 EDT 2012

The code to get the attribute description is quite simple and well documented in the DXL Reference Manual. Once you have the description, you can display this in a read-only DBE text box.
 

AttrDef ad 
string attrName
string attrDescription
 
attrName = "<enter attribute name here>" //enter the name of the attribute 
 
ad = find(current Module, attrName) 
attrDescription = ad.description
 
print attrDescription

 

 


Paul Miller
Melbourne, Australia

 

 

Re: How to abstract the attribute description info
DOORSUser - Mon Jun 25 20:29:01 EDT 2012

SystemAdmin - Mon Jun 25 18:44:45 EDT 2012

The code to get the attribute description is quite simple and well documented in the DXL Reference Manual. Once you have the description, you can display this in a read-only DBE text box.
 

AttrDef ad 
string attrName
string attrDescription
 
attrName = "<enter attribute name here>" //enter the name of the attribute 
 
ad = find(current Module, attrName) 
attrDescription = ad.description
 
print attrDescription

 

 


Paul Miller
Melbourne, Australia

 

 

Thank you very much for your quick response!