|
DigiPara Liftdesigner LDX API
|
API method: ILDXDocument5.CreateNewShaft
' from Samples/Src/LDXAPIExamples/Example_GroupsConfiguration.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXDocument~CreateNewShaft", "Remove elevator")>
Public Shared Sub RemoveElevator(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.Shafts Is Nothing Or ldxDocument.Shafts(0) Is Nothing Then
MsgBox("No valid shafts found to delete. Please load the .ld3 file and try again.")
Exit Sub
End If
' Delete the 1st shaft
ldxDocument.CreateNewShaft(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, ldxDocument.Shafts(0).Comp.SX, 0)
' Update bank 2 start index
ldxDocument.Shafts.BANK_2_START_SX -= 1
End Sub