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

API method: ILDXPulley5.DIAMETER

Treename: Shaft0.Gear.SH0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXPulley.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Gear.SH0.", "LDXPulley~DIAMETER", "Change dimensions")>
    Public Shared Sub ChangeDimensions(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Gear.SH0.") Is Nothing Then
            MsgBox("Desired pulley not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        With ldxDocument.Shafts(0).Gear.Pulley
            ' Enable the user to change dimensions
            .Comp.UserDefined = 1
            ' Change diameter
            .DIAMETER = 600
            ' Change thickness of the pulley
            .Width = 200
            ' Change pulley grove count
            .PulleyDimTab.SetValue("PUD_GROOVE_COUNT", 6)
        End With
    End Sub