DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change pulley beam displacement

API method: ILDXGear5.ROPE_DL

Treename: Shaft0.Gear.

 ' from Samples/Src/LDXAPIExamples/Example_LDXGear.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Gear.", "LDXGear~ROPE_DL", "Change pulley beam displacement")>
 Public Shared Sub ChangePulleyBeamDisplacement(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetLDXObject("Shaft0.Gear.") Is Nothing Then
         MsgBox("Gear not found!")
         Exit Sub
     End If

     With ldxDocument.Shafts(0).Gear
         ' Pulley beam sideways displacement
         .Object.GetDim("ROPE_DL").Value = -111
         .Object.GetDim("ROPE_DL").Calculate()
     End With

 End Sub