ababs Posted 3 hours ago Posted 3 hours ago 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! Quote
CivilTechSource Posted 1 hour ago Posted 1 hour ago Can you upload an example *.dwg file please to see how we can help. 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.