|
DigiPara Liftdesigner LDX API
|
API method: ILDXScaffoldings5.MP_LIST_MODE
Treename: Shaft0.AssemblyPlatformList.
2 code examples follow.
' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldings.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.", "LDXScaffoldings~MP_LIST_MODE", "Change platform properties")>
Public Shared Sub ChangePlatformProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.") Is Nothing Then
MsgBox("Scaffolding list in desired frame not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.").LDXType, DigiPara.LDX.LDXScaffoldings)
.MP_LIST_MODE = .MP_LIST_MODE Or DigiPara.LDX.ScaffoldingsModes.scmTypeHorizontalDouble
End With
End Sub
' from Samples/Src/LDXAPIExamples/Example_LDXScaffoldings.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail0.", "LDXScaffoldings~MP_LIST_MODE", "Enable anchor rails")>
Public Shared Sub EnableAnchorRails(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetObject("Shaft0.AssemblyPlatformList.") Is Nothing Then
MsgBox("Scaffolding list in desired frame not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.").LDXType, DigiPara.LDX.LDXScaffoldings)
.MP_LIST_MODE = .MP_LIST_MODE Or DigiPara.LDX.ScaffoldingsModes.scmTypeHorizontalDouble Or DigiPara.LDX.ScaffoldingsModes.scmFixingAnchorRail
End With
With DirectCast(ldxDocument.GetLDXObject("Shaft0.AssemblyPlatformList.Platform3.PlankList0.Plank0.AnchorRail0.").LDXType, DigiPara.LDX.LDXAnchorRail)
.Length = 1111
.Object.ChangePartRID64(1347, 0)
End With
End Sub