Jump to content

Recommended Posts

Posted

Hello everyone,

I’m trying to create a LISP to help with pipe takeoffs in AutoCAD. Here’s what I want it to do:

I have a plan with pipes of different sizes drawn as lines or polylines.

I want to create a takeoff layer (e.g., "M-TakeOff-CWS").

Instead of redrawing, I just select a line or polyline segment and choose a pipe size.

The code should automatically split the selected segment at all intersections with other lines or polylines.

Each resulting sub-segment is duplicated in place on the takeoff layer.

The duplicated segments get a color based on the chosen size.

The original line or polyline stays intact.

Later, I want to filter by color/size to calculate total lengths.

I’ve tried several approaches, but I’m struggling with:

Splitting segments automatically at intersections.

Duplicating them on a new layer.

Assigning colors by size.

Does anyone have a simple LISP example or guidance for this workflow?

Thanks in advance!
 

Posted

Can you upload an example *.dwg file please to see how we can help.

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