API Documentation > CorelDRAW > 2025-v26 > SubPath > IVGSubPath
SubPath.BreakApartAt method
Breaks this segment into two unconnected segments
Syntax:
Function BreakApartAt(Optional ByVal Offset As Double = 0.5, Optional ByVal OffsetType As cdrSegmentOffsetType = cdrRelativeSegmentOffset) As Node
Parameters:
Name Type Description
Offset
Double
Specifies the offset distance, in document units. 5.
OffsetType
Specifies the offset type, and returns cdrSegmentOffsetType.
Remarks:
The BreakApartAt method divides a subpath in two at the specified offset from its beginning.
Examples:
The following VBA example breaks the subpath apart at 1.2" from its beginning.
Sub Test()
ActiveShape.Curve.Subpaths(1).BreakApartAt 1.2, cdrAbsoluteSegmentOffset 
End Sub