DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change shaft width

API method: ILDXCar5.SetCOMP_DIST

Treename: Shaft0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.", "LDXCar~SetCOMP_DIST", "[0245] Change shaft width")>
 Public Shared Sub ChangeShaftWidth(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetLDXObject("Shaft0.CW.Weight.") Is Nothing Then
         MsgBox("Counterweight frame not found")
         Exit Sub
     End If

     With ldxDocument.Shafts(0).CWConsole.CWFrame
         ' Counterweight distance from wall
         .COMP_DIST = 500
         ' Counterweight thickness
         .DY = 400
     End With

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

     With ldxDocument.Shafts(0).Car
         ' Car distance from a wall
         .SetCOMP_DIST(DigiPara.LDX.WallType.wtLeft, 500)
         .SetCOMP_DIST(DigiPara.LDX.WallType.wtRight, 500)
         ' Car width
         .CW = 2000
         ' Left and right car wall thicknesses
         .SetWD(DigiPara.LDX.WallType.wtLeft, 100)
         .SetWD(DigiPara.LDX.WallType.wtRight, 100)
     End With

 End Sub