API Documentation > CorelDRAW > 2025-v26 > Segment > IVGSegment
Segment.AddNodeAt method
Inserts a node on the segment
Syntax:
Function AddNodeAt(Optional ByVal Offset As Double = 0.5, Optional ByVal OffsetType As cdrSegmentOffsetType = cdrParamSegmentOffset) As Node
Parameters:
Name Type Description
Offset
Double
Specifies the offset, in document units, from the beginning of the segment's subpath. 5.
OffsetType
Specifies the type of offset of the point on the curve's subpath, and returns cdrSegmentOffsetType.
Remarks:
The AddNodeAt method adds a node to a segment at a specified offset.
Examples:
The following VBA example creates a curve segment and adds a node at its center.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateCurveSegment(2, 8.3, 5.3, 8.5, 1.5, -62, 2.4, 84)
s.Curve.Segments(1).AddNodeAt 0.5, cdrRelativeSegmentOffset 
End Sub