| Name | Type | Description |
|---|---|---|
| Offset |
Double
|
Specifies the offset, in document units, of the point on a segment's subpath. 5. |
| OffsetType | Specifies the type of offset. |
Sub Test() Dim c As Double, r As Double Dim x As Double, y As Double, pa As Double Dim seg As Segment Set seg = ActiveShape.Curve.Segments(1) c = seg.GetCurvatureAt(0.25, cdrRelativeSegmentOffset) If Abs(c) < 0.00001 Then MsgBox "The segment is almost straight at this point", vbCritical Exit Sub End If seg.GetPointPositionAt x, y, 0.25, cdrRelativeSegmentOffset pa = seg.GetPerpendicularAt(0.25, cdrRelativeSegmentOffset) pa = pa * 3.1415926 / 180 r = 1 / c x = x + r * Cos(pa) y = y + r * Sin(pa) ActiveLayer.CreateEllipse2 x, y, r End Sub