swanny89 Posted yesterday at 08:28 AM Posted yesterday at 08:28 AM Hi all, Long story short, I waste tens of hours per year creating "quirks" in polylines, and I'm hoping that this could be automated using a LISP....problem is I have no idea where to start when it comes to manipulating geometry with LISP (or even if what I'm trying to achieve is possible). I'm wondering if anyone has a lisp, or could create a lisp (I will be eternally grateful) that can modify a polyline in a specific manner. The image below shows what I'm trying to achieve. I'd love to have 2 lisps. One to do corners (type 1 - calld "quirkc" ) and another to do lines (type 2 - called "quirkl"). The functionality I'd like to achieve in these LISPS is as follows; 1. Activate the lisp 2. Pick a point on the line or the corner (these geometries are polylines or closed polylines) 3. Have a prompt appear asking for width (x) and height (y) 4. modify the polyline as shown (create additional points in the polyline offset the required x and y distances) Thank you in advance for any help you can provide (or simply telling me this is not possible). Quote
devitg Posted 4 hours ago Posted 4 hours ago On 10/18/2025 at 5:28 AM, swanny89 said: Hi all, Long story short, I waste tens of hours per year creating "quirks" in polylines, and I'm hoping that this could be automated using a LISP....problem is I have no idea where to start when it comes to manipulating geometry with LISP (or even if what I'm trying to achieve is possible). I'm wondering if anyone has a lisp, or could create a lisp (I will be eternally grateful) that can modify a polyline in a specific manner. The image below shows what I'm trying to achieve. I'd love to have 2 lisps. One to do corners (type 1 - calld "quirkc" ) and another to do lines (type 2 - called "quirkl"). The functionality I'd like to achieve in these LISPS is as follows; 1. Activate the lisp 2. Pick a point on the line or the corner (these geometries are polylines or closed polylines) 3. Have a prompt appear asking for width (x) and height (y) 4. modify the polyline as shown (create additional points in the polyline offset the required x and y distances) Thank you in advance for any help you can provide (or simply telling me this is not possible). @swanny89 Please upload your.dwg sample. Would be all polylines rectangles orthogonal to X and Y axis? Quote
swanny89 Posted 3 hours ago Author Posted 3 hours ago @devitg Thank you for taking the time to look into this for me! Attached is a copy of the dwg with the basic geometry (before and after). I'd say in 90% of cases the rectangles would be orthogonal like you say, but sometimes they can be at any angle. If we could capture the 90% use case that would be hugely beneficial on it's own. Quirk.dwg 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.