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: runFile-command from a dxl-Script
Topic Summary: calling a Skript from another
Created On: 26-Jun-2006 12:35
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 Werner, on Monday, June 26, 2006 3:31 PM

Answer:
Hi,

I have found the solution by myself now.

I have to include the dxl-files to run in braces.

The Excample:
2 Dummyfunctions using the Variable i

//dummydxl1.dxl
/* this is dummyfunction #1 needed for a test */
int i = 0;
print "Dummy1\n"


//dummydxl2.dxl
/* this is dummyfunction #2 needed for a test */
int i = 0;
print "Dummy2\n"


A Testscript to Use the 2 Dummyfunctions:

print "begin\n"
{
#include '<'addins/user/dummydxl1.dxl'>'
}
{
#include '<'addins/user/dummydxl2.dxl'>'
}
print "end\n"
As this can be used now by any if-else-statement, to call a script without bothering other scripts. It also works with only one include in braces (of course).
 26-Jun-2006 12:35
User is offline View Users Profile Print this message


Michael Werner

Posts: 15
Joined: 29-May-2006

Hi, since i have already a lot of Scripts that do their Jobs very well, and I have many names used more than one time, i would like to write a script that offers a GUI, to chose which Skript to call. I have found the runFile-Command, but it seems, that it only works when it is called external. Another Solution could be using something like namespaces, but i haven't found anything like that in the Manuals Has anybode an idea? regards Michael
Report this to a Moderator Report this to a Moderator
 26-Jun-2006 15:24
User is offline View Users Profile Print this message


Michael Werner

Posts: 15
Joined: 29-May-2006

Answer Answer
Hi,

I have found the solution by myself now.

I have to include the dxl-files to run in braces.

The Excample:
2 Dummyfunctions using the Variable i

//dummydxl1.dxl
/* this is dummyfunction #1 needed for a test */
int i = 0;
print "Dummy1\n"


//dummydxl2.dxl
/* this is dummyfunction #2 needed for a test */
int i = 0;
print "Dummy2\n"


A Testscript to Use the 2 Dummyfunctions:

print "begin\n"
{
#include '<'addins/user/dummydxl1.dxl'>'
}
{
#include '<'addins/user/dummydxl2.dxl'>'
}
print "end\n"
As this can be used now by any if-else-statement, to call a script without bothering other scripts. It also works with only one include in braces (of course).

Edited: 26-Jun-2006 at 15:31 by Michael Werner
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.