Testing in a stand-alone exe
The document under test is a part, assembly or drawing. 
Allows you to program specific operations within an executable. The return value is used to check whether the execution was successful; if the return value differs from the programmed value (here = 1), the execution is considered to have failed.
The document's location is passed as an argument.
Example of a standalone program (console application in VB.NET):
' Review 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
"SLDPRT" field
Environment.Exit(1) ' Returns 1 if the path points to a room
"SLDASM" box
Environment.Exit(2) ' Returns 2 if the path points to an assembly
Box "SLDDRW"
Environment.Exit(3) ' Returns 3 if the path indicates a drawing
Else Clause
Environment.Exit(0) ' Returns 0 if the path does not specify a part, assembly, or drawing
End Select
End Sub