ectech Posted January 7, 2010 Author Posted January 7, 2010 Thank you very much for your help Lee and wizman. Quote
ectech Posted January 12, 2010 Author Posted January 12, 2010 I'm try to use this lisp to draw a ellipse but got some problem. how to drawing a ellipse by lisp and can I use the bpoly to make the circle or ellipse ? thanks ! Quote
wizman Posted January 12, 2010 Posted January 12, 2010 Here's for Circle thru bpoly: (defun c:CPoly (/ cen ent i ss) (vl-load-com) (if (setq i -1 ss (ssget '((0 . "CIRCLE")))) (while (setq ent (ssname ss (setq i (1+ i)))) (setq cen (vlax-get (vlax-ename->vla-object ent) 'center)) (vl-cmdf "._bpoly" "_a" "_B" "_n" ent "" "" cen "") (entdel ent) ) ) ) Ellipse to Polyline by Fuccaro: http://www.cadtutor.net/forum/showpost.php?p=14416&postcount=16 Quote
ectech Posted January 13, 2010 Author Posted January 13, 2010 Here's for Circle thru bpoly: (defun c:CPoly (/ cen ent i ss) (vl-load-com) (if (setq i -1 ss (ssget '((0 . "CIRCLE")))) (while (setq ent (ssname ss (setq i (1+ i)))) (setq cen (vlax-get (vlax-ename->vla-object ent) 'center)) (vl-cmdf "._bpoly" "_a" "_B" "_n" ent "" "" cen "") (entdel ent) ) ) ) Ellipse to Polyline by Fuccaro: http://www.cadtutor.net/forum/showpost.php?p=14416&postcount=16 Thank you very much for your help ! you are my lucky star !! Quote
wizman Posted January 13, 2010 Posted January 13, 2010 Thank you very much for your help ! you are my lucky star !! That's a good start for the day,. Thanks Ectech. Quote
ectech Posted January 13, 2010 Author Posted January 13, 2010 That's a good start for the day,. Thanks Ectech. I'm trying to use the ellispe to polyline lisp but it is only convert to polyline, it is possible to convert to lwpolyline ? I'm thinking can I use this lisp convert to polyline first and then use the bpoly command convert it to lwpolyline, but after convert the ellispe to polyline, I can't get anypoint inside the polyline. Is there other method ? Thanks ! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.