Jump to content

Select Objects By Crossing Window


Recommended Posts

Posted

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.

Posted

Awesome.  Thanks for all of the help.

Posted
10 minutes ago, Jim Clayton said:

Awesome.  Thanks for all of the help.

🍻

Posted

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

Posted (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 by Jonathan Handojo
Posted

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.

Posted

Thank you both for your help.  I think I can work with this information.

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