|
DigiPara Liftdesigner LDX API
|
API method: ILDXLamps5.DZ_START
Treename: Shaft0.LampList.
' from Samples/Src/LDXAPIExamples/Example_LDXLamps.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.LampList.", "LDXLamps~DZ_START", "Change properties")>
Public Shared Sub ChangeProperties(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)
' The first lamp height from the shaft bottom
.DZ_START = 1111
' The distance between lamps
.DZ_DELTA = 2222
' Sideways displacement from right edge
DirectCast(ldxDocument.GetLDXObject("Shaft0.LampList.Lamp0.").LDXType, DigiPara.LDX.LDXLamp).DELTA = 111
' Manually set the lamp count
.LPL_MODE = .LPL_MODE Or DigiPara.LDX.LampsModes.lsmManually
' Change lamp count
.Count = 4
End With
End Sub