DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change Total Roof Thickness

API method: ILDXRoof5.Thickness

Treename: Shaft0.Roof.

 ' from Samples/Src/LDXAPIExamples/Example_LDXRoof.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Roof.", "LDXRoof~Thickness", "Change Total Roof Thickness")>
 Public Shared Sub ChangeRoofThickness(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     Dim roof As DigiPara.LDX.LDXRoof = ldxDocument.Shaft.Room.Roof

     ActivateFrontRearOnly(roof)

     Dim roofFaceFront = roof.GetFace(DigiPara.LDX.WallType.wtFront)
     Dim roofFaceRear = roof.GetFace(DigiPara.LDX.WallType.wtRear)

     ' disable individual thickness
     roofFaceRear.RoofFaceMode = roofFaceRear.RoofFaceMode And Not DigiPara.LDX.RoofFaceModes.rfmManualThickness
     roofFaceFront.RoofFaceMode = roofFaceFront.RoofFaceMode And Not DigiPara.LDX.RoofFaceModes.rfmManualThickness

     ' change roof thickness
     If roof.Thickness < 100 Then
         roof.Thickness = 300
     Else
         roof.Thickness = 50
     End If
 End Sub