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: can't check the existence of an attribute
Topic Summary:
Created On: 11-Jan-2007 16:46
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.
 11-Jan-2007 16:46
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

hello DXLiens,
if you open a module then go to edit/Columns
there is a list of title, attributes and type 
where I've a title called ID with the attribute <Object Identifier>!
But if you go to edit/Attributes there is no such attribute listed
although I can see it in the open module!
Why? And whats the meaning of <...> ?
The other Attributes that are not putted in patantheses are listed in
edit/Attributes!
May be some of you know the answer!

best regards
Mussie

Report this to a Moderator Report this to a Moderator
 11-Jan-2007 17:53
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

The object identifer is not an attribute -- it is a computed value.
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 18:35
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

If you wanted say a list of the Object Identifiers of every object in a module you would do:

You can't edit the value of Object Identifer though.  Only access it.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 11-Jan-2007 at 18:37 by David Pechacek
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 20:58
User is offline View Users Profile Print this message


Scott Covington

Posts: 17
Joined: 29-Nov-2004

To summarize, it is a computed value. It is made up of two interesting pieces 1) a Module attribute called Prefix 2) an Object attribute call Absolute Number So you could create it yourself in layout DXL by: display (current Module)."Prefix" obj."Absolute Number" "" which displays the same as the layout DXL: display identifier(obj)
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 23:49
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

These 3 pieces of information about objects are displayable in a column but are not attributes:
Identifier, (paragraph) Number, and Level. They cannot be changed directly. You can change the Identifier for all objects by changing the module."Prefix". You can change the Number and Level of an object by moving it around in the module.

In DXL, these 3 can be retrived via identifier(obj), number(obj), and level(obj). Be advised that the number(obj) changes depending on whether you are viewing deleted objects or not.

- Louie
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 07:11
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Scott,

it's a little bit off topic ... but I would suggest to you:
Do not use display (current Module)."Prefix" obj."Absolute Number" "" because the (current Module) may not always be what you want!

So the better solution is display (module obj)."Prefix" obj."Absolute Number" "".
The same problem may occour with Triggers. There you should use (module (Trigger current)) instead of (current Module).

This fact this is a really nice trap door(s)

Greetings
Reik

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


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 09:42
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

how can I do this ' if(exists attribute "Object Identifier") ' I mean its not an attribute but I got do access it someway? Mussie
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 16:32
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

There is no need to check its existence, its there.
Object oCurr = current
print (identifier(oCurr)) "\t" (level(oCurr)) "\t" (number(oCurr)) "\n"
works.
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.