- Сообщения
- 4
- Реакции
- 0
Dim crv As Curve
Set crv = New Curve
Dim i As Integer
ce(0).ElementType = cdrElementStart
ce(0).PositionX = 0#
ce(0).PositionY = 0#
For i = 1 To UBound(s)
With ce(i)
.ElementType = cdrElementLine
.PositionY = s(i, 0)
.PositionX = s(i, 1)
End With
Next i
Set crv = CreateCurve(ActiveDocument)
crv.CreateSubPathFromArray ce
ActiveLayer.CreateCurve crv
crv.closed = true ' НЕ РАБОТАЕТ !!!
Dim shp As ShapeRange
Set shp = ActiveSelectionRange
Set crv = New Curve
Dim i As Integer
ce(0).ElementType = cdrElementStart
ce(0).PositionX = 0#
ce(0).PositionY = 0#
For i = 1 To UBound(s)
With ce(i)
.ElementType = cdrElementLine
.PositionY = s(i, 0)
.PositionX = s(i, 1)
End With
Next i
Set crv = CreateCurve(ActiveDocument)
crv.CreateSubPathFromArray ce
ActiveLayer.CreateCurve crv
crv.closed = true ' НЕ РАБОТАЕТ !!!
Dim shp As ShapeRange
Set shp = ActiveSelectionRange