|
DigiPara Liftdesigner LDX API
|
API method: ILDXComp5.ChangeSurfaceRID64
Treename: Shaft0.Entries1.E0.Jamb.
' from Samples/Src/LDXAPIExamples/Example_LDXJamb.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E0.Jamb.", "LDXComp~ChangeSurfaceRID64", "[0322] Change surface")>
Public Shared Sub ChangeSurface(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Entries1.E0.Jamb.") Is Nothing Then
MsgBox("Jamb not found!")
Exit Sub
End If
With ldxDocument.GetLDXComp("Shaft0.Entries1.E0.Jamb.")
If (.SurfaceTab.GetValue("SF_RID") <> 2) Then
ldxDocument.GetLDXComp("Shaft0.Entries1.E0.Jamb.").ChangeSurfaceRID64(2)
End If
End With
End Sub