|
DigiPara Liftdesigner LDX API
|
API method: ILDXCarFloor5.Mode
Treename: Shaft0.Car.Design.Floor.
' from Samples/Src/LDXAPIExamples/Example_LDXCarFloor.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Design.Floor.", "LDXCarFloor~Mode", "Change frame properties")>
Public Shared Sub ChangeFrameProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Design.Floor.") Is Nothing Then
MsgBox("Car floor not found!")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Design.Floor.").LDXType, DigiPara.LDX.LDXCarFloor)
' Enable different frame clearances
.Mode = .Mode Or DigiPara.LDX.CarFloorModes.cdflDifferentFrameWidths
' Change front frame clearance
.Object.SetValue("CLR_" + Convert.ToString(DigiPara.LDX.WallType.wtFront), 111)
.Object.GetDim("CLR_" + Convert.ToString(DigiPara.LDX.WallType.wtFront)).Calculate()
' Change frame width in all sides
.Object.SetValue("FRAME_W" + Convert.ToString(DigiPara.LDX.WallType.wtFront), 133)
.Object.GetDim("FRAME_W" + Convert.ToString(DigiPara.LDX.WallType.wtFront)).Calculate()
End With
End Sub