API Documentation > CorelDRAW > 2025-v26 > Nodes > IVGNodes
Nodes.AllExcluding method
Creates a range containing all the nodes except the ones specified
Syntax:
Function AllExcluding(ByRef ParamArray IndexArray() As Variant) As NodeRange
Parameters:
Name Type Description
IndexArray
Variant
Remarks:
The AllExcluding method returns a node range that contains all nodes in a Nodes collection except for the specified nodes. The AllExcluding method accepts a variable number of arguments. It also accepts arrays.
Examples:
The following VBA example deletes all nodes in the curve, with the exception of the first three nodes. Deleting nodes alters the appearance of the active shape.
Sub Test()
Dim nr As NodeRange
Set nr = ActiveShape.Curve.Nodes.AllExcluding(1, 2, 3)
nr.Delete 
End Sub