Previous Document Next Document

Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.AutoReduce


NodeRange.AutoReduce

Sub AutoReduce(PrecisionMargin As Double)

Description

Member of NodeRange

The AutoReduce method remove extra nodes, keeping the shape of the curve within a given margin of deviation.

Parameter
Description
PrecisionMargin
Specifies the maximum allowable deviation of the curve shape. This value is measured in document units of length. Specifying larger numbers leaves fewer nodes and may cause a larger distortion of the shape.

VBA example

The following VBA example removes any extra nodes in the active shape, keeping changes in the curve’s shape within 0.01" (where inches is the document’s unit of measurement).

Sub Test()
 ActiveShape.Curve.Nodes.All.AutoReduce 0.01
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.