![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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). | |
![]() |
|
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
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
runFile-command from a dxl-Script
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.