DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Add a hole in wall segment

API method: ILDXComp5.WallSegments

Treename: Shaft0.WallSegments.Segment0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.WallSegments.Segment0.", "LDXComp~WallSegments", "Add a hole in wall segment")>
 Public Shared Sub AddAHoleInWallSegment(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetLDXObject("Shaft0.") Is Nothing Then
         MsgBox("Shafts not found")
         Exit Sub
     End If

     Dim ldxWallSegments As DigiPara.LDX.LDXWallSegments = ldxDocument.Shafts(0).Comp.WallSegments
     Dim ldxWallSegment As DigiPara.LDX.LDXWallSegment = ldxWallSegments.Add
     Dim ldxHole As DigiPara.LDX.LDXHole = ldxWallSegment.Hole

     With ldxHole
         ' Specify additional hole
         ' Specify how the hole will be positioned 
         .HoleMode = .HoleMode Or DigiPara.LDX.HoleModes.hmAdditionalHole Or DigiPara.LDX.HoleModes.hmPosiByDim
         ' Set hole location on rear wall
         .Comp.Wall = DigiPara.LDX.WallType.wtRear
         ' Hole location - Z coordinate
         .Z0 = 9000
         ' Hold location - X coordinate
         .X0 = 350
         ' Hole width
         .DX = 1000
         ' Hole depth 
         .DY = 300
         ' Hole height
         .DZ = 1000
         ' Activate hole
         .Object.Active = True
     End With

 End Sub