|
DigiPara Liftdesigner LDX API
|
API method: ILDXWallOpening5.T_AUSBR_B
Treename: Shaft0.Entries1.E0.Opening.
' from Samples/Src/LDXAPIExamples/Example_LDXWallOpening.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E0.Opening.", "LDXWallOpening~T_AUSBR_B", "Change Properties")>
Public Shared Sub ChangeProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Entries1.E0.Opening.") Is Nothing Then
MsgBox("Wall opening in front entries not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E0.Opening.").LDXType, DigiPara.LDX.LDXWallOpening)
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E0.Jamb.").LDXType, DigiPara.LDX.LDXJamb)
' Calculate wall opening height and width manually
.JAMB_MODE = .JAMB_MODE Or DigiPara.LDX.JambModes.jmWowManual Or DigiPara.LDX.JambModes.jmWohManual
' The horizontal addition to the opening's sides
.JambTypeTab.SetValue("JT_WOW_CONSTANT", 0)
End With
If .T_AUSBR_H < 3000 Then
' The opening height
.T_AUSBR_H = 3000
' The opening width
.T_AUSBR_B = 1700
' The left horiontal dispalacement of the opening (the old way; one needs to call LDXDim.Calculate to make the change apply)
.XRIGHT = 0
.Object.GetDim("XRIGHT").Calculate()
Else
' The opening height
.T_AUSBR_H = 2800
' The opening width
.T_AUSBR_B = 1400
' The left horiontal dispalacement of the opening (the center of the opening relative to the left shaft wall)
.T_AUSBR_X0 = .T_AUSBR_B/2
End If
End With
End Sub