Jump to content

Recommended Posts

Posted

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

 

 

Polylines.png

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

 

 

Polylines.png

@swanny89 Please upload your.dwg sample.  Would be all polylines  rectangles orthogonal to X and Y axis?

Posted

@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

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