Jump to content

make a selection set with all lwpolyline and circle


Recommended Posts

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • ectech

    11

  • wizman

    8

  • Lee Mac

    6

  • MSasu

    3

Top Posters In This Topic

Posted

Thank you very much for your help Lee and wizman.

Posted

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 !

Posted

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

Posted
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 !!

Posted
Thank you very much for your help ! you are my lucky star !!

 

That's a good start for the day,.:) Thanks Ectech.

Posted
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 !

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...