DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change frame properties

API method: ILDXCarCeiling5.Mode

Treename: Shaft0.Car.Design.Ceiling.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCarCeiling.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Ceiling.", "LDXCarCeiling~Mode", "Change frame properties")>
    Public Shared Sub ChangeFrameProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Car.Design.Ceiling.") Is Nothing Then
            MsgBox("Car ceiling not found!")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Ceiling.").LDXType, DigiPara.LDX.LDXCarCeiling)
            ' Enable different frame widths
            .Mode = .Mode Or DigiPara.LDX.CarCeilingModes.cdcDifferentFrameWidths
            ' Change front frame width
            .Object.SetValue("FRAME_W" + Convert.ToString(DigiPara.LDX.WallType.wtFront), 222)
            .Object.GetDim("FRAME_W" + Convert.ToString(DigiPara.LDX.WallType.wtFront)).Calculate()
            ' Change frame clearance in all sides
            .Object.SetValue("CLR_" + Convert.ToString(DigiPara.LDX.WallType.wtFront), 88)
            .Object.GetDim("CLR_" + Convert.ToString(DigiPara.LDX.WallType.wtFront)).Calculate()
        End With

    End Sub