Operation possible on parts, assemblies or drawings.

This operation allows to program specific operations in an executable. The return value allows to control if the execution is valid, if the return value is different from the programmed value (example : 1) then the execution is considered as failed.

The location of the document is passed as an argument.

The selection of the program to be executed is made by clicking on .


   


Example of a standalone program (console application in VB.net) :

Reading the arguments

Dim args() As String = Environment.GetCommandLineArgs()

Sub Main()

If args.Length < 2 Then End

Dim stPath As String = args(1)

Select Case IO.Path.GetExtension(stPath).ToUpper

Box ''.SLDPRT'''

Environment.Exit(1) ' Return 1 if the path indicates a part

Box ''.SLDASM'''.

Environment.Exit(2) ' Return 2 if the path indicates an assembly

Box ''.SLDDRW''.

Environment.Exit(3) ' Return 3 if the path indicates a plan

Case Else

Environment.Exit(0) ' Return 0 if the path does not indicate a part, an assembly or a drawing

End Select

End Sub