Previous Document Next Document
NodeRange.AutoReduce

Sub AutoReduce(PrecisionMargin As Double)

Member of NodeRange

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

Parameters
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.

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

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

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.