DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Deactivate the active document

API method: ILDXDocument5.Deactivate

Treename: LDXDocument.

 ' from Samples/Src/LDXAPIExamples/Example_LDXDocument.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXApp}, "LDXDocument.", "LDXDocument~Deactivate", "Deactivate the active document")>
 Public Shared Sub DeactivateTheActiveDocument(ByRef ldxApplication As DigiPara.LDX.LDXApplication)

     If ldxApplication.ActiveDocument Is Nothing Then
         MsgBox("Active document not found!")
         Exit Sub
     End If

     ldxApplication.Documents(0).Deactivate()

 End Sub