|
DigiPara Liftdesigner LDX API
|
API method: ILDXDocument5.Close
' from Samples/Src/LDXAPIExamples/Example_LDXDocument.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXApp}, "", "LDXDocument~Close", "Close .ld3 file")>
Public Shared Sub Close(ldxApplication As DigiPara.LDX.LDXApplication)
For Each ldxDocument As DigiPara.LDX.LDXDocument In ldxApplication.Documents
If ldxDocument.Filename = System.IO.Path.Combine(System.IO.Path.GetTempPath, "Default.ld3") Then
ldxDocument.Close()
Exit Sub
End If
Next
MsgBox("Default.ld3 file is not opened! Open Default.ld3 first so that it can be closed.")
End Sub