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: Accessing the Object Number attribute
Topic Summary:
Created On: 21-Sep-2004 13:53
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.
 21-Sep-2004 13:53
User is offline View Users Profile Print this message


Chris Brooke

Posts: 2
Joined: 19-Aug-2004

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?
Report this to a Moderator Report this to a Moderator
 21-Sep-2004 14:48
User is offline View Users Profile Print this message


Anton Drexler

Posts: 25
Joined: 9-Dec-2003

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
Report this to a Moderator Report this to a Moderator
 21-Sep-2004 23:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 22-Sep-2004 10:06
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

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
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.