|
DigiPara Liftdesigner LDX API
|
API method: ILDXEntry5.GetPocket
Treename: Shaft0.Entries1.E0.Pocket1.
' from Samples/Src/LDXAPIExamples/Example_LDXEntry.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E0.Pocket1.", "LDXEntry~GetPocket", "Change entry pocket properties")>
Public Shared Sub ChangeEntryPocketProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Entries1.E0.Pocket1.") Is Nothing Then
MsgBox("Desired entry pocket not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
Dim ldxEntry As DigiPara.LDX.LDXEntry = DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E0.").LDXType, DigiPara.LDX.LDXEntry)
With ldxEntry.GetPocket(1)
' Manually calculate the width
.POCKET_MODE = .POCKET_MODE Or DigiPara.LDX.EntryPocketModes.epmWidthManual
' Depth
.N_T = 222
' Width
.N_B = 222
' Height of top pocket edge from the finished floor upwards
.N_HO = 1444
' Height of bottom pocket edge from the finished floor downwards
.N_HU = -1111
' Distance from the left entry corner
.N_XL = 111
End With
End Sub