Hi,
Here's my (quite old) attempt.
The polyline ellipse approximation is the same as AutoCAD's one (i.e. PELLIPSE = 1).
The EL2PL command converts the selected ellipses or elliptical arcs in lwpolylines.
The PELL command let the user draw a polyline ellipse approximation as with te native ELLIPSE command.
;; EllipseToPolyline
;; Returns a polyline (vla-object) which is an approximation of the ellipse (or elliptical arc)
;;
;; Argument : an ellipse (vla-object)
(defun EllipseToPolyline (el / cl norm cen elv pt0 pt1 pt2 pt3 pt4 ac0
ac4 a04 a02 a24 bsc0 bsc2 bsc3 bsc4 plst blst spt spa
fspa srat ept epa fepa erat n
)
...
pl
)
Nice solution , Gile !
I always can see the master's demeanor from you !
Thank you a lot ![/code]