![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Accessing the Object Number attribute Topic Summary: Created On: 21-Sep-2004 13:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi, ive written some attribute DXL to pull in the attributes from an object that exists in another module, whereby the object is linked to the object in this module. Specifally I need Object Number. How do you access this attribute, it just says it cant find it - Even though blatantly exists! Any ideas?
|
|
![]() |
|
![]() |
|
Hi Chris,
indeed, there is no Atrtibute "Object Number", but you can retrieve the Object Number of an object obj by use of the function number obj. Regards Toni |
|
![]() |
|
![]() |
|
Yes, this is not an "attribute" and therefore doesn't follow the obj.NameAttr conventions. 3 such pieces of information are similarly constructed:
number(obj) // paragraph number identifier(obj) // Module Prefix plus object Absolute Number level(obj) // Level of object in the Hierarchy Notice you can change these "features" of the object without actually modifying the object. Be advised that the "number(obj)" changes depending on whether deletions are showing or not. I've got a function that turns off showing deletions, gets the number, and turns deletions back on (if they were showing), to insure I get the REAL number. But this function doesn't work in Layouts nor AttrDXL, since the object in question becomes undefined if IT is deleted and you turn off showing deletions: lots of DXL errors. - Louie |
|
![]() |
|
![]() |
|
Object o = current
print probeAttr_(o,"Object Number") print probeAttr_(o,"Object Identifier") this works with attributes and pseudo-attributes Edited: 22-Sep-2004 at 10:07 by Ross Morgan |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Accessing the Object Number attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.