|
DigiPara Liftdesigner LDX API
|
API method: ILDXApplication5.SetDescription
Treename: Shaft0.WIDTH
' from Samples/Src/LDXAPIExamples/Example_LDXApplication.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXApp}, "Shaft0.WIDTH", "LDXApplication~SetDescription", "Change dimension tags")>
Public Shared Sub ChangeDimensionTags(ldxApplication As DigiPara.LDX.LDXApplication)
If ldxApplication.ActiveDocument Is Nothing Or ldxApplication.ActiveDocument.GetObject("Shaft0.WIDTH") Is Nothing Then
MsgBox("Shaft width property not found!")
Exit Sub
End If
' Show chain dimension text
ldxApplication.ActiveDocument.DimChainText = True
With TryCast(ldxApplication.ActiveDocument.GetLDXObject("Shaft0.WIDTH").LDXType, DigiPara.LDX.LDXObjectDim)
' Width dimension prefix
ldxApplication.SetDescription(.DimKey, "SW ")
' Width dimension chain description
ldxApplication.SetDescription("CHAIN:" & .DimIdent, "Shaft width")
End With
End Sub