Jump to content

lisp to fillet polylines


rcstha

Recommended Posts

How much do you know about lisp, like make a selection set of plines, set filletrad, loop through selection doing the fillet, hey that was the program steps.

Link to comment
Share on other sites

Thanks for your concern. To be honest i don't know about lisp code yet.

i am using some lisps which were written by others only.

🙏

Link to comment
Share on other sites

i have attached a simple sample of five polylines which i have to fillet in a vertex with some radius. i am doing it manually for many lines.

Thank you.

sample.dwg

Link to comment
Share on other sites

The problem is how do you work out which segments to not fillet. if its always say a Z shape then can say do fillet 2nd & 3rd segment. Need more examples in your dwg.

Link to comment
Share on other sites

Thank you for the reply.

actually my working drawings have many polyline segments and i want to fillet at all or at some vertices according to the necessity.

so it would be better if i get a lisp code with choosing option.

🙏

Link to comment
Share on other sites

i got a lisp code which help me 80% but not 100% because it fillet in all vertices not in specific vertex of polylines.

the code is as below.

 

(defun C:FMP ; = Fillet Multiple Polylines
  (/ plss n)
  (if (setq plss (ssget "_:L" '((0 . "LWPOLYLINE"))))
    (repeat (setq n (sslength plss))
      (command "_.fillet" "_polyline" (ssname plss (setq n (1- n))))
    ); repeat
  ); if
  (princ)
); defun

Link to comment
Share on other sites

You have a contradiction, you want fillet multiple plines, but only some part of the plines, so how do you choose which parts to fillet ? Do you have a rule about which segments to use ?

Edited by BIGAL
Link to comment
Share on other sites

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...