|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarFloorPanels5.Mode
Treename: Shaft0.Car.Design.Floor.Panels.
' from Samples/Src/LDXAPIExamples/Example_LDXCarFloor.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Floor.Panels.", "LDXCarFloorPanels~Mode", "Change panel row count")>
Public Shared Sub ChangPanelRowCount(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Design.Floor.Panels.") Is Nothing Then
MsgBox("Car floor panels not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Floor.Panels.").LDXType, DigiPara.LDX.LDXCarFloorPanels)
If MsgBox("Add a floor panel row? If not a floor panel row will be removed.", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
' Calculate width by count
.Mode = .Mode Or DigiPara.LDX.CarFloorPanelsModes.cfpsUseRowsCount
' Change panel rows
.Object.SetValue("ROWS", 7)
Else
' Calculate count by width
.Mode = .Mode And Not DigiPara.LDX.CarFloorPanelsModes.cfpsUseRowsCount
' Change panel row width
.CarFloorPanelsTab.SetValue("CFPS_DY", 420)
End If
End With
End Sub