All Frameworks Object Hierarchy This Framework Indexes
| o Func Environ( | iEnvString) As |
Value = CATIA.SystemService.Environ("PATH")
| o Func Evaluate( | iScriptText, | |
| iLanguage, | ||
| iFunctionName, | ||
| iParameters) As |
Dim params()
Dim codeToEvaluate
CodeToEvaluate = "Sub CATMain()" & vbNewLine & _
"MsgBox " & chr(34) & "Hello World" & chr(34) & vbNewLine & _
"End Sub"
CATIA.SystemService.Evaluate CodeToEvaluate, CATVBScriptLanguage, "CATMain", params
| o Func ExecuteBackgroundProcessus( | iExecutablePath) As |
and doesn't wait the end of its execution.
CATIA.SystemService.ExecuteBackgroundProcessus ""
| o Func ExecuteProcessus( | iExecutablePath) As |
waits for it to end, and returns its return code.
ReturnCode = CATIA.SystemService.ExecuteProcessus("")
| o Func ExecuteScript( | iLibraryName, | |
| iType, | ||
| iProgramName, | ||
| iFunctionName, | ||
| iParameters) As |
Dim params() CATIA.SystemService.ExecuteScript"Part1.CATPart", catScriptLibraryTypeDocument, "Macro1.catvbs", "CATMain", params
| o Sub Print( | iString) |
CATIA.SystemService.Print("Hello world!")
Copyright © 2003, Dassault Systèmes. All rights reserved.