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: Object and Module Level Attributes
Topic Summary:
Created On: 6-Mar-2008 09:22
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.
 6-Mar-2008 09:22
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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.
Report this to a Moderator Report this to a Moderator
 6-Mar-2008 10:24
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

Hi Lisa,

try:

AttrDef ad
for ad in current Module do {
if (ad.module) print ad.name ""
}

Karl
Report this to a Moderator Report this to a Moderator
 6-Mar-2008 11:43
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Many thanks Karl
Report this to a Moderator Report this to a Moderator
 6-Mar-2008 13:01
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2008 13:52
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2008 13:54
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Sorry, yes I have got it now, silly me.

Many thanks to all.
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.