DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change display plane

API method: ILDXSheetFrame5.HATCH_PLANE_SHAFT_INDEX

Treename: Sheets.LdvSheet1.LdvFrame2.

 ' from Samples/Src/LDXAPIExamples/Example_LDXSheetFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Sheets.LdvSheet1.LdvFrame2.", "LDXSheetFrame~HATCH_PLANE_SHAFT_INDEX", "Change display plane")>
 Public Shared Sub ChangeDisplayPlane(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetObject("Sheets.LdvSheet1.LdvFrame2.") Is Nothing Then
         MsgBox("Desired sheet frame not found! Please reload the relevant .ld3 file.")
         Exit Sub
     End If

     With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.").LDXType, DigiPara.LDX.LDXSheetFrame)
         ' Choose closest shaft
         .HATCH_PLANE_SHAFT_INDEX = DigiPara.LDX.SheetFrameHatchShaftIndexSpecial.sfhsisNearest
         If MsgBox("Change vertical display plane? If not the horizontal display plane will be changed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
             ' Choose front wall in shaft
             .HATCH_PLANE_FLOOR_INDEX = DigiPara.LDX.SheetFrameHatchFloorLevelSpecial.sfhflsShaftLowest
             ' Hatch plane origin offset (inward displacemnt) relative to base
             .HATCH_PLANE_ORIGIN_OFFSET.Y = 0
         Else
             ' Choose top floor
             .HATCH_PLANE_FLOOR_INDEX = DigiPara.LDX.SheetFrameHatchFloorLevelSpecial.sfhflsHighest
             ' Hatch plane origin offset (upward displacemnt) relative to base
             .HATCH_PLANE_ORIGIN_OFFSET.Z = 0
         End If
     End With
 End Sub