|
DigiPara Liftdesigner LDX API
|
API method: ILDXObject5.SetValue
Treename: Shaft0.CW.GuardScreen.
' from Samples/Src/LDXAPIExamples/Example_LDXCWGuardScreen.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.CW.GuardScreen.", "LDXObject~SetValue", "[0609] Change dimensions")>
Public Shared Sub ChangeDimensions(ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.Object.GetObjectByRelativeName("Shaft0.CW.GuardScreen.") Is Nothing Then
MsgBox("Guard screen not found!")
Exit Sub
End If
With ldxDocument.GetLDXObject("Shaft0.CW.GuardScreen.")
If .Comp.RID64 = 0 Then
' if no guard screen loaded
' load common components CWT guards screen
.Comp.ChangePartRID64(2, 0)
End If
' Height
.SetValue("DZ", 3333)
' Thickness
.SetValue("THICKNESS", 3)
' Width + add value left:
.SetValue("PLUS_LEFT", 200)
' Width + add value right:
.SetValue("PLUS_RIGHT", 200)
End With
End Sub