|
DigiPara Liftdesigner LDX API
|
API method: ILDXFloorLevels5.StandardFloorLevel
' from Samples/Src/LDXAPIExamples/Example_GroupsConfiguration.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXFloorLevels~StandardFloorLevel", "Change floor properties")>
Public Shared Sub ChangeFloorProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.FloorLevels Is Nothing Or ldxDocument.FloorLevels.Count = 0 Or ldxDocument.FloorLevels.StandardFloorLevel Is Nothing Then
MsgBox("No floors found!")
Return
End If
Dim ldxFloorLevel As DigiPara.LDX.LDXFloorLevel = Nothing
If MsgBox("Do you want to change properties of all floors? If not only the first floor properties will be changed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
' Edit all floors
ldxFloorLevel = ldxDocument.FloorLevels.StandardFloorLevel
Else
' Edit only 1st floor
ldxFloorLevel = ldxDocument.FloorLevels(0)
ldxFloorLevel.FLOOR_LEVEL_MODE = DigiPara.LDX.FloorLevelModes.flmIndividualFloor
End If
With ldxFloorLevel
' Display floor
.FLOOR_LEVEL_MODE = .FLOOR_LEVEL_MODE Or DigiPara.LDX.FloorLevelModes.flmCreateFloor
' Change floor level material
.ALTERNATIVE_MATERIAL = DigiPara.LDX.ShaftMaterial.smClassic
' Floor extension from right wall
.SetFloorWidth(DigiPara.LDX.WallType.wtRight, 2000)
' Floor extension from front wall
.SetFloorWidth(DigiPara.LDX.WallType.wtFront, 100)
' Material height
.ALTERNATIVE_MATERIAL_THICKNESS = 600
' Flooring thickness
.CONCRETE_THICKNESS = 400
' Floor finish height
.FINISH = 100
' Floor ceiling height
.CEILINGHEIGHT = 2000
' Floor serving height
.SERVINGHEIGHT = 500
End With
End Sub