Efeezy Posted May 7, 2021 Posted May 7, 2021 Good Morning: Does anyone have a polyline lisp with a specific dimension? I am placing electrical receptacles in an apartment complex. The polyline needs to be a total of 6'-0" or 12'-0". The polyline will bend around: corners cabinets and pillars. The poly line will not be longer that the predetermined length. Thank you for your time, Efeezy Quote
dan20047 Posted May 7, 2021 Posted May 7, 2021 use the LENGTHEN command with TOTAL option? I use a shortcut (defun c:LT () (command "LENGTHEN" "TOTAL") (princ)) Quote
Efeezy Posted May 7, 2021 Author Posted May 7, 2021 Ok, I see where you are going with this. I want to draw a poly line and have the length at 6' or 12'. The way the LT lisp is set up it takes an existing pline and makes it a specific length. Quote
mhupp Posted May 7, 2021 Posted May 7, 2021 Set a perimeter of the room with a poly and use break command? https://forums.autodesk.com/t5/autocad-forum/how-to-break-multiple-polylines-at-specific-length-at-the-same/m-p/7987976/highlight/true#M932419 Quote
dan20047 Posted May 7, 2021 Posted May 7, 2021 59 minutes ago, Efeezy said: Ok, I see where you are going with this. I want to draw a poly line and have the length at 6' or 12'. The way the LT lisp is set up it takes an existing pline and makes it a specific length. that's right, and you could create a command that draws a pline first, and then runs the lengthen command. Then provide (getvar "lastpoint") as a response to selecting an object. Quote
BIGAL Posted May 8, 2021 Posted May 8, 2021 This has been answered before, if you draw a pline can get overall length and then reset last point, this though requires that the last segment is a straight and making to 12 would not go shorter than 2nd last point. I think it was Lee-mac that may have responded to prior request I am sure if so he will post. Quote
dan20047 Posted May 8, 2021 Posted May 8, 2021 at least in Bricscad v15, the LENGTHEN command will shorten past 2nd to last point Quote
Jonathan Handojo Posted May 10, 2021 Posted May 10, 2021 Sorry fellas. All hail the king: Limited Length Polyline 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.