;; Add Spline
(defun c:test ( / *mspace* p pts spline)
(setq *mspace*
(vla-get-ModelSpace
(vla-get-ActiveDocument
(vlax-get-acad-object)
)
)
)
(setq p (getpoint "\nPick point: "))
(while (setq p (getpoint p "\nPick point: ")) (setq pts (cons p pts)))
(setq pts (append pts (list (car pts))))
(setq spline
(vlax-invoke *mspace* 'AddSpline (apply 'append pts)
'(0.0 0.0 0.0) '(0.0 0.0 0.0)
)
)
(setq fd (vlax-curve-getFirstDeriv spline 0))
(vlax-put spline 'StartTangent fd)
(vlax-put spline 'EndTangent fd)
(princ)
)
Good one, but "LWPOLYLINE" may be better as it won't work with 3D or heavy plines.Thanks CAB .
If somebody has a newer version of DXF reference, I'll be glad if he'll share it with us.
Thank you Lee. I have that one but is incomplete. How do you explain this?If somebody has a newer version of DXF reference, I'll be glad if he'll share it with us.
AutoCAD Exchange DXF Reference (http://exchange.autodesk.com/autocad/enu/online-help/browse#WS73099cc142f48755a52158612bd434e551-7fdd.htm)
How do you explain this?