criehle Posted June 5, 2009 Posted June 5, 2009 Does anybody know a command that will merge two closed polylines into one closed polyline? Thanks AutoCAD Map 2009 Quote
hoanh Posted June 6, 2009 Posted June 6, 2009 Try this lisp routine. type MP (Merge polyline) to start. (defun c:mp( / ss el) (defun getfromlast(e / s) (setq s (ssadd))(while (setq e (entnext e)) (setq s (ssadd e s))) ) (setq ss (ssget (list (cons 0 "*POLYLINE"))) el (entlast)) (command ".region" ss "") (command ".union" (getfromlast el) "") (setq el (entlast)) (command ".explode" (entlast) "") (command ".pedit" (entlast) "y" "j" (getfromlast el) "" "") (princ) ) 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.