|
DigiPara Liftdesigner LDX API
|
API method: ILDXScaffoldingBoard5.DeleteAnchorRail
Treename: Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail1.
' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldingBoard.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail1.", "LDXScaffoldingBoard~DeleteAnchorRail", "Delete an anchor rail")>
Public Shared Sub DeleteAnAnchorRail(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail0.") Is Nothing Then
MsgBox("Desired anchor rail not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.").LDXType, DigiPara.LDX.LDXScaffoldings)
' Disable anchor rails
.MP_LIST_MODE = .MP_LIST_MODE And Not DigiPara.LDX.ScaffoldingsModes.scmFixingAnchorRail
ldxDocument.CalculateModel(DigiPara.LDX.CalculateModelModes.rcmCalcAndReport Or DigiPara.LDX.CalculateModelModes.rcmFireCalculatedEvent)
' Delete anchor rail
With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.").LDXType, DigiPara.LDX.LDXScaffoldingBoard)
.DeleteAnchorRail(0)
End With
' Enable anchor rails
.MP_LIST_MODE = .MP_LIST_MODE Or DigiPara.LDX.ScaffoldingsModes.scmFixingAnchorRail
End With
End Sub