|
DigiPara Liftdesigner LDX API
|
API method: ILDXComp5.Holes
Treename: Shaft0.Hole1.
' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Hole1.", "LDXComp~Holes", "Add a custom hole")>
Public Shared Sub AddACustomHole(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.") Is Nothing Then
MsgBox("Shaft not found!")
Exit Sub
End If
Dim ldxHoles As DigiPara.LDX.LDXHoles = ldxDocument.Shafts(0).Comp.Holes
Dim ldxHole As DigiPara.LDX.LDXHole = ldxHoles.Add
With ldxHole
' Specify additional hole and
' make hole shape cylndrical
.HoleMode = .HoleMode Or DigiPara.LDX.HoleModes.hmAdditionalHole Or DigiPara.LDX.HoleModes.hmCylinder
' Set hole on the back wall
.Comp.Wall = DigiPara.LDX.WallType.wtRear
' Hole location - Z coordinate
.Z0 = 9000
' Hold location - X coordinate
.X0 = 200
' Diameter of hole
.DX = 1100
' Hole depth
.DY = 300
' Activate hole
.Object.Active = True
' The description of the hole
.DESC = "New LD API Example hole"
End With
End Sub