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: Navigating to children of an object
Topic Summary:
Created On: 19-Nov-2004 17:30
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.
Answer This question was answered by Michael Sutherland, on Friday, November 19, 2004 8:24 PM

Answer:
Kristie,

Object childO
for childO in o do {
}
 19-Nov-2004 17:30
User is offline View Users Profile Print this message


Kristie Carpenter

Posts: 3
Joined: 29-Oct-2004

I am writing a DXL script and I need to be able to navigate to the children of an object. For example, I know that you can navigate to a parent of an object by using  the function: ' parent(Object o)'. Is there a similar function for navigating to the children of an object?


Thanks,
Kristie Carpenter
Report this to a Moderator Report this to a Moderator
 19-Nov-2004 19:22
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer Answer
Kristie,

Object childO
for childO in o do {
}

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 22-Nov-2004 13:39
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You may also want to look at the following. All are useful:

first(Object o)
last(Object o)
next(Object o)
sibling(Object o)
etc

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 24-Nov-2004 21:46
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

See also "Specific Object"
Object o[int n]
Module m[int n]

which jump to the nth child object of the object, or the nth level one object of the module.

You'll need to experiment to see if these respect the Deleted display state. If the very first object in the module is deleted and not displayed, will obj = mod[1] find this object, or the apparent first one?

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