Operation possible on parts, assemblies or drawings.

This operation is used to program specific operations into an executable. If the return value is different from the programmed value (e.g. 1), execution is considered to have failed.

The document location is passed as an argument.

To select the program to be run, click on .


   


Example of a stand-alone program (console application in VB.net) :

Reading 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 room

Box ''.SLDASM''.

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

Case ''.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, assembly or drawing

End Select

End Sub