API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.Smoothen method
Smoothens the curve at the nodes in the range
Syntax:
Sub Smoothen(ByVal Smoothness As Long)
Parameters:
Name Type Description
Smoothness
Long
Remarks:
The Smoothen method sets the curve smoothness at each node in a node range. This method produces the same effect as changing the value of the Curve smoothness slider on the property bar.
Examples:
The following VBA example smooths all curves on the active page in the drawing.
Sub Test()
Dim s As Shape
For Each s In ActivePage.Shapes
  If s.Type = cdrCurveShape Then

 s.Curve.Nodes.All.Smoothen 20
  End If
Next s 
End Sub