LineSmoothing
The LineSmoothing method smooths a polyline or polygon by adding vertices.
Syntax
object. LineSmoothing( PointsToInsert, Tension )
Parameter |
Type |
Default |
Description |
PointsToInsert |
Integer |
required; the number of points to insert between existing vertices |
|
Tension |
Integer |
required; A value between 0 - 100, the tension specifies how much curvature is introduced with the new vertices. A smaller tension value leads to more curvature. A larger tension value leads to straighter lines. |
Remarks
To select objects in a base layer, use the StartEditing method on the base layer Shapes collection.
Example 1
This example demonstrates how to smooth the selected polyline by adding 3 points between vertices with a tension of 20%.
Selection.LineSmoothing(PointsToInsert:=3, Tension:=20)
Used by: Selection Collection