DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change location

API method: ILDXRopeWallFixing5.X0

Treename: Shaft0.Components.WallFixing0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXRopeWallFixing.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Components.WallFixing0.", "LDXRopeWallFixing~X0", "Change location")>
    Public Shared Sub ChangeLocation(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Components.WallFixing0.") Is Nothing Then
            MsgBox("Desired rope wall fixing not found! Please reload the relevant .ld3 file!")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.Components.WallFixing0.").LDXType, DigiPara.LDX.LDXRopeWallFixing)
            ' Manually edit rope wall fixing's X and Y coordinates
            .RopeWallFixingMode = .RopeWallFixingMode Or DigiPara.LDX.RopeWallFixingModes.rwfmManualXY
            ' Sideways displacement
            .X0 = 222
            ' Inwards displacement
            .Y0 = 111
            ' Upward displacement
            .DZ = -DirectCast(ldxDocument.GetLDXObject("Shaft0.Gear.").LDXType, DigiPara.LDX.LDXGear).RELATIVE_DZ
        End With

    End Sub