|
DigiPara Liftdesigner LDX API
|
API method: ILDXLamps5.LPL_MODE
Treename: Shaft0.LampList.Lamp1.
' from Samples/Src/LDXAPIExamples/Example_LDXLamps.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.LampList.Lamp1.", "LDXLamps~LPL_MODE", "Place lamps at separator beams")>
Public Shared Sub LampsAtSeparatorBeams(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.LampList.") Is Nothing Then
MsgBox("Lamps not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.LampList.").LDXType, DigiPara.LDX.LDXLamps)
' place on wall with separator beams
With ldxDocument.Shafts(0).Console(4).RailBrackets
.RBL_MODE = .RBL_MODE Or DigiPara.LDX.RailBracketsModes.rbmSeparatorBeam
End With
.Comp.Wall = 4
' place lamps at separator beam positions (lsmFixAtSeparatorBeam is for Y position)
.LPL_MODE = .LPL_MODE Or DigiPara.LDX.LampsModes.lsmFixAtSeparatorBeam Or DigiPara.LDX.LampsModes.lsmZAtSeparatorBeams
' this makes sure to put one lamp on each beam
.DZ_START = 0
.DZ_END_MIN = 0
.DZ_DELTA = 0
' add a little Z offset to have the lamp not tangle awkwardly at the top of the beam
.DZ_OFFSET = -100
' avoid collision with ladder
.Item(0).DELTA = 500
' make visible
Helpers.EnsureVerticalView(ldxDocument, .Comp)
End With
End Sub