DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Automatically calculate rope distances above the machine bed

API method: ILDXGearFrame5.RecalcGFRIndex

Treename: Shaft0.Gear.GearFrame.

 ' from Samples/Src/LDXAPIExamples/Example_LDXGear.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Gear.GearFrame.", "LDXGearFrame~RecalcGFRIndex", "Automatically calculate rope distances above the machine bed")>
 Public Shared Sub AutomaticallyCalculateRopeDistancesAboveTheMachineBed(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

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

     Dim ldxGearFrame As DigiPara.LDX.LDXGearFrame = ldxDocument.Shafts(0).Gear.Frame

     With ldxGearFrame
         .GFR_MODE = .GFR_MODE And Not DigiPara.LDX.GearFrameModes.gfrmIndexManual
         .RecalcGFRIndex(.Comp.IX)
     End With

 End Sub