I have created a GUI using VB Express Edition which feeds in values to a CATIA document. I have created a CATscript which generates a model based on those values. I want to call the CATscript from the VB program and run it subsequently after the parameters have been input. How do I do that ?
Hi. These codes might give you an idea of how to do it:
call CATIA.SystemService.ExecuteBackGroundProcessus(“WScript.exe c:\CATScripts\read_user_environment.vbs”)
‘how to call one catscript from another
ScPath = “D:\tmp”
MsgBox “Save Operation will be executed on the active document!”
CATIA.SystemService.ExecuteScript scpath, catScriptLibraryTypeDirectory, “Save.CATScript”, “CATMain”, EmptyPar