Jump to content

Need a LISP to Create an Outer Contour from Selected Objects


Recommended Posts

Posted

Hı Everyone

I’m looking for an AutoLISP routine that can take a selection of objects (LINE, LWPOLYLINE, POLYLINE, etc.) and generate a single outer boundary (contour) that follows the outermost edges of these objects.

The goal is to merge or outline only the outermost edges of all selected entities, ignoring any internal edges or overlaps.

The resulting outer contour should be a closed polyline if possible.

The type or layer of the original objects doesn’t matter — only their geometry matters.

Has anyone developed or seen a routine like this, or could point me in the right direction?

Thanks in advance!

Posted

If all the objects touch ie no gaps, then this method should work, you draw a random closed pline around your objects, use BPOLY pick a point inside this dummy outer pline, two new plines will be made, erase the dummy and the new pline at the outer, you should now have a new pline wrapped around your objects.

 

image.png.de7d87ba47450432fda73612eb05c720.png

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