Jim Clayton Posted September 20, 2021 Share Posted September 20, 2021 Good Morning. Just wondering if there is a quick and easy method to change lisps that select objects individually, so that you can select multiple objects with a crossing window. Perhaps just one line of ominous code that can be thrown in at a designated spot? I have a few different lisps that I'm wanting to make this change to. Tks. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted September 20, 2021 Share Posted September 20, 2021 Use (SSGET "_C" p1 p2). The objects will need to be visible on the screen most likely. 3 Quote Link to comment Share on other sites More sharing options...
Jim Clayton Posted September 20, 2021 Author Share Posted September 20, 2021 Awesome. Thanks for all of the help. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted September 20, 2021 Share Posted September 20, 2021 10 minutes ago, Jim Clayton said: Awesome. Thanks for all of the help. Quote Link to comment Share on other sites More sharing options...
Jim Clayton Posted September 20, 2021 Author Share Posted September 20, 2021 I've been doing my best to insert this into the existing code with a fair amount of research on my end, but i'm continuing to come up short. Any chance I could get some direction. I understand the general concept and difference between SSGET and NENTSEL, i'm just having a hard time executing it. TEST.lsp Quote Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted September 21, 2021 Share Posted September 21, 2021 (edited) That code does use nentsel , but it's enclosed within a user-defined function "LM:SelectIf" to make it easier to select an object. Unfortunately that function will only allow for a single object selection. In order to make it to multiple selection, you would have to completely modify the LM:SelectIf function and then some more minor adjustment on the actual MATCHPIPE command to account for that function change. I could easily modify it for you, but it's not really my style to modify people's work. Edited September 21, 2021 by Jonathan Handojo Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 21, 2021 Share Posted September 21, 2021 Like Ronjonp you can add ssget filters (setq ss (ssget "_C" pt1 pt2 '((0 . "INSERT")))) will only get blocks so could add name and layer etc. Quote Link to comment Share on other sites More sharing options...
Jim Clayton Posted September 21, 2021 Author Share Posted September 21, 2021 Thank you both for your help. I think I can work with this information. Quote Link to comment Share on other sites More sharing options...
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.