Donistco Posted February 26 Posted February 26 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. Quote
Jonathan Handojo Posted February 26 Posted February 26 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). 1 Quote
Donistco Posted February 27 Author Posted February 27 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. Quote
lastknownuser Posted February 27 Posted February 27 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 1 Quote
Jonathan Handojo Posted February 27 Posted February 27 (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. Edited February 27 by Jonathan Handojo 2 1 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.