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: opening modules in Layout DXL?
Topic Summary: how to speed up Layout DXL scripts that load other modules?
Created On: 27-Jan-2006 10:27
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 Tony Goodman, on Friday, January 27, 2006 12:17 PM

Answer:
Try this

string moduleName = "/DB/FOLDER/Mod"

if (!open module moduleName)
{
m = read(moduleName, false)
}
else
{
Module m = module(item(moduleName))
}
 27-Jan-2006 10:27
User is offline View Users Profile Print this message


Volker Subat

Posts: 13
Joined: 20-Jan-2006

Hello there,

I got a problem with LayoutDXL. My aim is to compare two read-only modules without creating links.
The IDs (absolute numbers) of similar objects in both modules are the same, as one is a copy of the other.
Now I decided to write a LayoutDXL-script comparing the object in the other module, finding it by the ID.
Therefore I need to open the other module, and I need a Module-Variable to address it.
But opening the module for every object visible on screen takes way to long. I can check, whether it's already opened or not ... but when it is already opened, how do I initialise my Module-Variable?

see my code here:

Report this to a Moderator Report this to a Moderator
 27-Jan-2006 11:20
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
Try this

string moduleName = "/DB/FOLDER/Mod"

if (!open module moduleName)
{
m = read(moduleName, false)
}
else
{
Module m = module(item(moduleName))
}

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


Volker Subat

Posts: 13
Joined: 20-Jan-2006

It worked. Such a simple expression ... :-) Thank you a lot!
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.