Jump to content

Recommended Posts

Posted

Good day. Requesting for an AutoLISP function that SELECTS overlap objects (similar to OVERKILL command - but instead of deleting overlap objects, keeps as selection)

 

Sequence:

• enter Lisp Command

• Select Objects as the 'Selection Set' ("POINT,*POLYLINE,SPLINE,REGION,INSERT,CIRCLE,POLYGONS")

• Prompts the Pop-up Dialogue Box exactly similar to OVERKILL to input parameters (see attached Capture1.PNG)

• removes NON-OVERLAP objects from the 'Selection Set'; only keep OVERLAP objects from the 'Selection Set'

 

Notes:

• if Pop-up UI is tedious, kindly set parameter with 0 tolerance

 

The purpose of the function is to highlight where the objects overlap and not simply deleting it (OVERKILL).

 

Thanks & regards to CADTutor community.

Capture1.PNG

Posted

It's not even the pop-up in itself that's tedious, but rather the whole logic to perform the calculations to find the overlaps is in itself already a very tedious task. This is because you are involving multiple object types in your calculations. What you're trying to accomplish is not an easy task.

 

In the meantime, you can have a look at this program Block Overkill which only process blocks (and that in itself is already a lot).

  • Like 1
Posted

Hi @Jonathan Handojo. Appreciate the insight. Is there a way to extract the OVERKILL code? Otherwise, at least a simple code for overlapping POLYLINE & POINT is more than enough.

 

https://www.youtube.com/watch?v=vTHZf4rqzn0  --> something similar to this function

The LISP in this video is in .vlx format and does not show code. I am reaching out to the developer and currently waiting for a response. Meanwhile, any idea is welcome.

 

Thanks & Regards.

Posted

Best thing is to post a sample dwg to see what exactly you want. To find overlapping POLYLINE & POINT, or in other words find points on polyline is relatively easy

  • Like 1
Posted (edited)
7 hours ago, Donistco said:

Hi @Jonathan Handojo. Appreciate the insight. Is there a way to extract the OVERKILL code? Otherwise, at least a simple code for overlapping POLYLINE & POINT is more than enough.

 

https://www.youtube.com/watch?v=vTHZf4rqzn0  --> something similar to this function

The LISP in this video is in .vlx format and does not show code. I am reaching out to the developer and currently waiting for a response. Meanwhile, any idea is welcome.

 

Thanks & Regards.

 

I believe any command that is built-in to AutoCAD is proprietary product and cannot be disclosed to the public. However, some built-in AutoLISP commands, for example, the Express Tools of AutoCAD, are all saved in your local computer and can be viewed anytime under your directory "C:\Program Files\Autodesk\AutoCAD 2021\Express" (assuming your CAD version is 2021).

 

Anyways, that aside, just as the previous comment suggested, finding a point that overlaps with basically any curve is relatively easy. But finding the overlaps of two curves, even between two polylines as shown below, is not easy.

 

image.png.515f14291682c8bf0e1d46b4da9e800d.png

Edited by Jonathan Handojo
  • Like 2
  • Agree 1

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