Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
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!

Posted

All the thanks go to KentCooper....I just pointed you in the right direction. Glad to hear it fulfilled your needs.

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

Posted

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.

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