ktbjx Posted April 1, 2016 Posted April 1, 2016 i have a LINE and i want to divide it into2 or more equal parts so that it will become many lines... so from 1 single line it will be cut into many.. is that doable in lisp?? example i have 1 line and i want to divide it into 5 lines... just like the break command, but i have to repeat my process everytime i break, i want to break a line into whatevet number i put so i would be more productive. Quote
ReMark Posted April 1, 2016 Posted April 1, 2016 Yes, it is doable in lisp and fortunately for you someone has already gone ahead and done all the grunt work to accomplish the task. You can thank Kent1Cooper for his Subdividelsp routine which can be found via this link. To execute the command load it into AutoCAD then at the command line type SD and just follow the command line prompt. http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/break-line-not-divide/td-p/2572800/highlight/true/page/2 Look for the post with the 05-11-2011 date. Quote
ktbjx Posted April 1, 2016 Author Posted April 1, 2016 Yes, it is doable in lisp and fortunately for you someone has already gone ahead and done all the grunt work to accomplish the task. You can thank Kent1Cooper for his Subdividelsp routine which can be found via this link. To execute the command load it into AutoCAD then at the command line type SD and just follow the command line prompt. http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/break-line-not-divide/td-p/2572800/highlight/true/page/2 Look for the post with the 05-11-2011 date. SPOT ON! Exactly what i need!!! thank you so much! Quote
ReMark Posted April 1, 2016 Posted April 1, 2016 All the thanks go to KentCooper....I just pointed you in the right direction. Glad to hear it fulfilled your needs. Quote
marko_ribar Posted April 1, 2016 Posted April 1, 2016 i have a LINE and i want to divide it into2 or more equal parts so that it will become many lines... so from 1 single line it will be cut into many.. is that doable in lisp?? example i have 1 line and i want to divide it into 5 lines... just like the break command, but i have to repeat my process everytime i break, i want to break a line into whatevet number i put so i would be more productive. You can actually do it and with PLINES, LINES, ARCS... Just convert them with PEDIT first into LWPOLYLINE and do segmentation with PLINETOOLS posted here : http://www.cadtutor.net/forum/showthread.php?67924-Draw-polyline-along-with-2-or-more-adjacent-closed-polylines/page3&p=#25 After that all you have to do is explode LWPOLYLINES into LINES or ARCS... HTH, M.R. Quote
ReMark Posted April 1, 2016 Posted April 1, 2016 KentCooper's lisp routine does work on polylines, arcs and circles. It even works on splines but due to the nature of splines the result may not be what the user was looking for. 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.