![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Object and Module Level Attributes Topic Summary: Created On: 6-Mar-2008 09:22 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi All
Is there a way to find out if an attribute exists for Object or Module please? Whilst I can check for the existence of the attribute, I have no way of knowing whether this is at Module or Object level. if (exists attribute "Project") for instance. I need to be able to ask whether its Module or Object attribute. Any help much appreciated as always. |
|
![]() |
|
![]() |
|
Hi Lisa,
try: AttrDef ad for ad in current Module do { if (ad.module) print ad.name "" } Karl |
|
![]() |
|
![]() |
|
Many thanks Karl
|
|
![]() |
|
![]() |
|
Hi Lisa,
Use these functions. Be warned that they assume the current Module. You could add a module parameter if you wish. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Hi Tony
Thanks for that: How would I apply that to this situation: Basically, I want to match the object or module attribute value to the one that I'm getting from looping through my skplist. At the moment I can't tell at what level the attribute is at, to be able to assign it to the string. Many thanks |
|
![]() |
|
![]() |
|
Sorry, yes I have got it now, silly me.
Many thanks to all. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Object and Module Level Attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.