|
DigiPara Liftdesigner LDX API
|
API method: ILDXApplication5.Open
' from Samples/Src/LDXAPIExamples/Example_LDXApplication.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel, {APIHelpModes.InputParaLDXApp, APIHelpModes.InputParaTempWithDefaultFileName}, "", "LDXApplication~Open", "Open .ld3 file")>
Public Shared Sub Open(ldxApplication As DigiPara.LDX.LDXApplication, ld3FullFilePath As String)
For Each ldxDocument As DigiPara.LDX.LDXDocument In ldxApplication.Documents
If ldxDocument.Filename = ld3FullFilePath Then
MsgBox("Default.ld3 file already open!")
Exit Sub
End If
Next
If Not System.IO.File.Exists(ld3FullFilePath) Then
MsgBox("Default.ld3 file does not exist!")
Exit Sub
End If
If ldxApplication.Open(ld3FullFilePath) Is Nothing Then
MsgBox("Could not open Default.ld3!")
End If
End Sub