|
DigiPara Liftdesigner LDX API
|
API method: ILDXEntries5.EntriesMode
Treename: Shaft0.Entries1.
' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.", "LDXEntries~EntriesMode", "Add a hole")>
Public Shared Sub AddAHole(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Entries1.Hole0.") Is Nothing Then
MsgBox("Desired shaft hole not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With ldxDocument.Shafts(0).GetEntries(DigiPara.LDX.WallType.wtFront)
' Add one hole
.EntriesMode = DigiPara.LDX.EntriesModes.elmOneHole
' Ceiling hole dimensions
.HOLE_DX = 333
.HOLE_DY = 444
' Ceiling hole location
.HOLE_X0 = -333
.HOLE_Y0 = 111
End With
End Sub