DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Add or remove entries

API method: ILDXFloorLevels5.Item

 ' from Samples/Src/LDXAPIExamples/Example_GroupsConfiguration.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXFloorLevels~Item", "Add or remove entries")>
    Public Shared Sub AddOrRemoveEntries(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.FloorLevels Is Nothing Or ldxDocument.FloorLevels.Count = 0 Then
            MsgBox("No floors found. Please load .ld3 file again")
            Return
        End If

        ' ldxDocument.FloorLevels(x).SetService(y, z)
        ' x - floor level (starting from 0)
        ' y - shaft number (starting from 0)
        ' z - service (entry wall) 
        '     0 -> no entries
        '     1 -> front
        '     2 -> rear
        '     4 -> left
        '     8 -> right

        If MsgBox("Add rear entry to 1st floor of last shaft? If not all entries in 1st floor of last shaft will be removed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
            ldxDocument.FloorLevels.Item(0).SetService(ldxDocument.Shafts.Count - 1, 3)
        Else
            ldxDocument.FloorLevels.Item(0).SetService(ldxDocument.Shafts.Count - 1, 0)
        End If
    End Sub