API Documentation > CorelDRAW > 2025-v26 > NodeRange > IVGNodeRange
NodeRange.AddRange method
Adds all nodes from the given range to the current range
Syntax:
Sub AddRange(ByVal NodeRange As NodeRange)
Parameters:
Name Type Description
NodeRange
Remarks:
The AddRange method adds nodes from another node range to the current node range.
Examples:
The following VBA example sets the node type to smooth for all nodes on the first and second subpaths of the selected curve.
Sub Test()
Dim nr As NodeRange
Set nr = ActiveShape.Curve.Subpaths(1).Nodes.All
nr.AddRange ActiveShape.Curve.Subpaths(2).Nodes.All
nr.SetType cdrSmoothNode 
End Sub