Test in an autonomous exe
The document tested is a part, an assembly or a drawing.
Allows to program specific operations in achievable. The value of return makes it possible to control if the execution is valid, if the value of return is different from the programmed value (here = 1) the execution is regarded as failed.
The site of the document passed in argument.
Example of a stand-alone program (console application in VB.net) :
‘Reading of the arguments
Dim args() As String = Environment.GetCommandLineArgs ()
If args. Length < 2 Then End
Dim stPath As String = args (1)
Select Case IO.Path.GetExtension (stPath) .ToUpper
Environment. Exit (1) 'Return 1 if the path indicates a part
Environment. Exit (2) 'Return 2 if the path indicates an assembly
Environment. Exit (3) 'Return 3 if the path indicates a drawing
Environment. Exit (0) 'Return 0 if the path does not indicate a part, an assembly or a drawing