|
DigiPara Liftdesigner LDX API
|
API method: ILDXUserComp5.Mode
Treename: Shaft0.Components.LD API Example.
' from Samples/Src/LDXAPIExamples/Example_LDXUserComp.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Components.LD API Example.", "LDXUserComp~Mode", "Change properties")>
Public Shared Sub ChangeProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Components.LD API Example.") Is Nothing Then
MsgBox("User component not found! Please reload the relevent .ld3 object.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Components.LD API Example.").LDXType, DigiPara.LDX.LDXUserComp)
' Hide manufacturer
.UserDisplayOptions = .UserDisplayOptions And (Not DigiPara.LDX.ObjectDisplayOptions.odoShowManufacturer)
' Position automatically
.Mode = .Mode And Not DigiPara.LDX.UserCompModes.ucmUsePositionAndAngle
End With
End Sub