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: acess attributes via links
Topic Summary:
Created On: 12-Jan-2007 12:56
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.
 12-Jan-2007 12:56
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

hello DXLiens,

I wrote a DXL script that is suposed to iterate through all objects of a module
find links to other modules objects and print out the ID's of the linked objects!
I don't have any syntax errors!
My problem is it takes to long I've waited for an hour and 30min. but still did not get any result!
So I'm wondering if there is a possibility to get the data quicker?
I've attached the code so you should be able to try it out!

best regards
Mussie

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


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You are looping through the objects in the target module every time you follow a link and printing stuff out, so I am not surprised this takes a while to run!

Surely you just need the ID of the linked object, so remove the loop in the target module and just print out the target object identifier.

Also, you do not need to check for the existence of system attributes such as "Created By", they always exist.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 14:02
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

first of all thanks for the answer you are right obviously I don't need to loop through the target module!
But know I've a new problem!
I get this error although the attribute exists!!?
-R-E- DXL: <Line:40> null Object parameter was passed into argument position 1

-I- DXL: execution halted

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


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You are assigning the OutlinkedObject variable BEFORE you have loaded the target module.
If the module was not already open then this variable will be null.

Assign the target object after loading the target module.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 14:19
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Example for you

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 15:00
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

thanks for the answer now it works!
Report this to a Moderator Report this to a Moderator
 22-Jan-2007 14:14
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

I'm trying to run this script on a Module with CP links but it didn't recognise the links ??
Can some one help me?
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.