![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
hello DXLiens, |
|
![]() |
|
![]() |
|
The object identifer is not an attribute -- it is a computed value.
|
|
![]() |
|
![]() |
|
If you wanted say a list of the Object Identifiers of every object in a module you would do: ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 11-Jan-2007 at 18:37 by David Pechacek |
|
![]() |
|
![]() |
|
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)
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
how can I do this ' if(exists attribute "Object Identifier") '
I mean its not an attribute but I got do access it someway?
Mussie
|
|
![]() |
|
![]() |
|
There is no need to check its existence, its there.
Object oCurr = current print (identifier(oCurr)) "\t" (level(oCurr)) "\t" (number(oCurr)) "\n" works. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
can't check the existence of an attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.