DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change displacement between centers of gear's pulley and first gear frame's pulley

API method: ILDXGear5.DEFL_1_DY

Treename: Shaft0.Gear.

 ' from Samples/Src/LDXAPIExamples/Example_LDXGear.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Gear.", "LDXGear~DEFL_1_DY", "Change displacement between centers of gear's pulley and first gear frame's pulley")>
 Public Shared Sub ChangeDisplacementBetweenCentersOfGearAndFirstGearFramePulleys(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

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

     Dim ldxGear As DigiPara.LDX.LDXGear = ldxDocument.Shafts(0).Gear

     With ldxGear
         ' Inward displacement 
         .DEFL_1_DY = 333
         ' Upward displacement
         .Object.GetDim("DEFL_1_DZ").Value = -1300
         .Object.GetDim("DEFL_1_DZ").Calculate()
     End With

 End Sub