Jump to content

Recommended Posts

Posted

Happy new year, I have an old lsp that someone gave me but it stops working when I updated to Map3d 2023. What it supposed to do is break all the polyline that crosses it or touches it, it's like break at point. can someone please take a look and see. thank you in advance.

breakall.LSP

Posted

I just tried it and appears to work for me, breaking the crossing lines and leaving a gap. I am on AutoCAD 2022, not Map2023 but the basic commands should still work the same.

 

Do you get any error messages or indication how far through the routine it goes before it stops? (Or even if it completes what it thinks it is meant to do with no result)

Posted

@Jojo Sorry i don't have Map 2023 to test this, but maybe some of the objects in your selection set are Map2023 custom objects that have a name that ends in "...LINE"?

 

I would try making the ssget statement more specific and see if that works:

change
(setq ss (ssget '((0 . "*LINE,ARC"))))
to
(setq ss (ssget '((0 . "*POLYLINE,LINE,ARC"))))

 

Posted
28 minutes ago, Jojo said:

@pkenewell that didn't work. thank you!

@Jojo Ok sorry I couldn't help more. 🫤

Posted
Quote

I updated to Map3d 2023

I have this, specifically for map. (but should also work without a map)
This breaks all the selected LWpolylines together, but for map also keeps the object data (as well as the xdata) for the new segments: which the native "_BREAK" command does not do.
Can this be a starting point?

break_all_lwpoly.lsp

  • 2 weeks later...
Posted
On 1/6/2024 at 7:37 AM, Tsuky said:

I have this, specifically for map. (but should also work without a map)
This breaks all the selected LWpolylines together, but for map also keeps the object data (as well as the xdata) for the new segments: which the native "_BREAK" command does not do.
Can this be a starting point?

break_all_lwpoly.lsp 8.25 kB · 5 downloads

Thank you Tsuky. it work.

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