|
DigiPara Liftdesigner LDX API
|
API method: ILDXObject5.WriteXml
' from Samples/Src/LDXAPIExamples/Example_LDXDocument.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXApp, APIHelpModes.InputParaDesktopWithOtherFileName, "LD API Example.xml"}, "", "LDXObject~WriteXml", "Export as XML")>
Public Shared Sub ExportAsXML(ByRef ldxApplication As DigiPara.LDX.LDXApplication, targetFilePath As String)
If ldxApplication.ActiveDocument Is Nothing Or ldxApplication.ActiveDocument.Object Is Nothing Then
MsgBox("Active document not found!")
Exit Sub
End If
ldxApplication.ActiveDocument.Object.WriteXml(targetFilePath)
End Sub