Share via


FreeformDrawingPrecision Property [Visio 2003 SDK Documentation]

Determines the margin of error allowed when the Freeform tool is drawing a straight line before it switches to drawing a spline.

longRet = object.FreeformDrawingPrecision

object.FreeformDrawingPrecision = longVal

longRet    Long. Current freeform drawing precision setting.

object    Required. An expression that returns an ApplicationSettings object.

longVal    Required Long. New freeform drawing precision setting.

Version added

2003

Remarks

Setting the FreeformDrawingPrecision property is equivalent to setting the Precision option on the Advanced tab in the Options dialog box (Tools menu).

Possible values for the FreeformDrawingPrecision property range from 0 (Tight) to 10 (Loose). The default is 5.

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the FreeformDrawingPrecision property to print the current freeform drawing precision setting in the Immediate window. It also shows how to get an ApplicationSettings object from the Visio Application object.

Public Sub FreeformDrawingPrecision_Example()

    Dim vsoApplicationSettings As Visio.ApplicationSettings
    Dim lngPrecisionSetting As Long

    Set vsoApplicationSettings = Visio.Application.Settings
    lngPrecisionSetting = vsoApplicationSettings.FreeformDrawingPrecision

    Debug.Print lngPrecisionSetting

End Sub

Applies to | ApplicationSettings object

See Also | FreeformDrawingSmoothing property