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 :

    ‘Reading of 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

            Case “.SLDPRT”

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

            Case “.SLDASM”

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

            Case “.SLDDRW”

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

            Case Else

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

        End Select

    End Sub