flyingpenguin
New member
- Mar 22, 2004
- 7
Hello,
I am trying to execute an existing CATscript from a new one.
- The existing script operates on the active document to save it into a database.
- It is written by someone else, I want to use it as it is.
The sample code I have written is:
However, I get the following error for the ExecuteScript line: Cannot use paranthesis when calling a sub
Although I checked the language reference, I am not sure if I used the correct syntax. How could it be written without paranthesis? Probably, the problem must be something else.
Thanks in advance...
FPeng - a fresh enthusiast in CATIA Scripting
I am trying to execute an existing CATscript from a new one.
- The existing script operates on the active document to save it into a database.
- It is written by someone else, I want to use it as it is.
The sample code I have written is:
Code:
Sub CATMain()
scpath = "D:\tmp"
MsgBox "CATIman Save Operation will be executed on the active document!"
CATIA.SystemService.ExecuteScript(scpath, catScriptLibraryTypeDocument, "Save.CATScript")
End Sub
However, I get the following error for the ExecuteScript line: Cannot use paranthesis when calling a sub
Although I checked the language reference, I am not sure if I used the correct syntax. How could it be written without paranthesis? Probably, the problem must be something else.
Thanks in advance...
FPeng - a fresh enthusiast in CATIA Scripting