|
DigiPara Liftdesigner LDX API
|
API method: ILDXGearFrame5.DEFSHEAVE_1_DX
Treename: Shaft0.Gear.GearFrame.
' from Samples/Src/LDXAPIExamples/Example_LDXGear.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Gear.GearFrame.", "LDXGearFrame~DEFSHEAVE_1_DX", "Properties of gear frame with 1 deflection sheave")>
Public Shared Sub PropertiesOfGearFrameWith1DeflectionSheave(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
' Maually do the rope distance calculation
.GFR_MODE = .GFR_MODE Or DigiPara.LDX.GearFrameModes.gfrmIndexManual
.GearFrameTab.SetValue("GFR_MODE", Convert.ToInt32(.GearFrameTab.GetValue("GFR_MODE")) Or 1)
' Length reduced from the distance between ropes (above the machine bed)
.DEFSHEAVE_1_DX = 11
' Distance between top of the gear frame and deflection sheave
.DEFSHEAVE_1_DZ = 777
.GearFrameTab.SetValue("GFR_DEFSHEAVE_1_DZ", 777)
.Object.SendChangeNotification("", "")
End With
End Sub