DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Move drawing from one point to another

API method: ILDXView5.Pan

 ' from Samples/Src/LDXAPIExamples/Example_LDXView.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXView~Pan", "Move drawing from one point to another")>
    Public Shared Sub MoveDrawingFromOnePointToAnother(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Sheets.LdvSheet1.") Is Nothing Then
            MsgBox("Desired sheet not found. Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        ldxDocument.Sheets.ActiveSheet.View.Pan()
        MsgBox("Please select two points within the drawing")

    End Sub