|
DigiPara Liftdesigner LDX API
|
API method: ILDXShaft5.LAMP_LIST_COUNT
Treename: Shaft0.LampList3.Lamp0.
' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.LampList3.Lamp0.", "LDXShaft~LAMP_LIST_COUNT", "Add another lamp list")>
Public Shared Sub AdditionalLampList(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.") Is Nothing Then
MsgBox("Shaft not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With ldxDocument.Shaft
If .LAMP_LIST_COUNT < 4 Then
' increase lamp list count
.LAMP_LIST_COUNT = 4
' assign wall and activate
.LampsEx(3).Comp.Wall = 3
.LampsEx(3).Comp.ChangePartRID64(1, 0)
' in the default document, the extra lamps should appear on the plan view.
' of course, to just get one extra lamp list, we could have simply used .LampsEx(1), but
' in case we need four or more lists, .LAMP_LIST_COUNT can be used to generate them.
Else
' deactivate again
.LAMP_LIST_COUNT = 3
End If
End With
End Sub