Hi guys,
does anyone know how to activate the checkbox in marked menu?
It is for dimensions with a tolerance, e.g. bilateral tolerance type.
the method just modifies the value but does not check the checkbox “use dimension size”:
Private Sub ProcessDisplayDimension(anno As annotation)
Dim dd As DisplayDimension
Dim swDim As Dimension
Dim swTolerance As DimensionTolerance
Set dd = anno.GetSpecificAnnotation
If dd Is Nothing Then Exit Sub
Set swDim = dd.GetDimension2(0)
If swDim Is Nothing Then Exit Sub
Set swTolerance = swDim.Tolerance
If swTolerance Is Nothing Then Exit Sub
If swTolerance.Type = swTolType_e.swTolNONE Then Exit Sub
Dim tolType As Integer
Dim status As Boolean
tolType = swTolerance.Type
If tolType = swTolFIT Or tolType = swTolFITTOLONLY Or tolType = swTolFITWITHTOL Then
status = swTolerance.SetFitFont(True, True, 1)
Else
status = swTolerance.SetFont(True, True, 1)
End If
End Sub