selecting multiple objects inside blocks

selecting multiple objects inside blocks

hoseobshim
Contributor Contributor
821 Views
10 Replies
Message 1 of 11

selecting multiple objects inside blocks

hoseobshim
Contributor
Contributor

I can select multiple objects by ssget.
I can select single object inside a block by nentselp or nentsel.

 

How can I select multiple objects inside blocks?
An example of selecting multiple objects inside blocks is selecting cutting edges of trim.
Command trim allows picking multiple objects inside blocks!
How was this operation implemented in AutoCAD?

0 Likes
Accepted solutions (3)
822 Views
10 Replies
Replies (10)
Message 2 of 11

Moshe-A
Mentor
Mentor
Accepted solution

@hoseobshim  hi,

 

Well, maybe there are other ways to do this, i would use (ssnamex) depending on [sel-mode] of (ssget) it return the ename of the block reference plus more... say the selection was "Fence" (ssnamex) return the list of all points that were crossing the block reference. for each point call (nentselp <pt>) to pick the nested objects.

 

Makes sense?

 

Moshe

 

 

 

 

Message 3 of 11

Kent1Cooper
Consultant
Consultant
Accepted solution

It may depend on what you want to do with them.  If you want to Copy them, try getting into BEDIT [REFEDIT does not allow this] and Ctrl+C copying them [to the clipboard], closing editing without saving, and pasting them in.

Kent Cooper, AIA
Message 4 of 11

komondormrex
Mentor
Mentor
Accepted solution

How can I select multiple objects inside blocks?


do cycling select multiple objects inside a block using nentsel then. you cannot highlight typically selected nested enames thou.

Message 5 of 11

hoseobshim
Contributor
Contributor

Thanks, Moshe-A.
Now I'm exploring coding with ssget ":N", ssnamex, and transformation matrix. (luckily, not calculus)
I will be able to select multiple objects inside blocks.

0 Likes
Message 6 of 11

hoseobshim
Contributor
Contributor

Thanks, Kent1Cooper.
It's straightforward and easy to follow.

0 Likes
Message 7 of 11

paullimapa
Mentor
Mentor

Lee Mac has this all summed up nicely here:

http://www.lee-mac.com/ssget.html#modes


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 11

hoseobshim
Contributor
Contributor

Thanks, komondormrex.
I agree that highlighting selcected objects can be essential function for users.
I'm thinking that: make new objects overlapped, highlight them, and delete before ending session.

0 Likes
Message 9 of 11

hoseobshim
Contributor
Contributor

Thanks for your valuable information.

0 Likes
Message 10 of 11

komondormrex
Mentor
Mentor

no, it is better to grdraw a bounding rectangle of selected object inside a block. won't be messy in a way.

0 Likes
Message 11 of 11

hoseobshim
Contributor
Contributor

Thanks, komondormrex.

to highligh in this case, yes, grdraw is much better option, but grdrawn lines will disappear when user zooms in or out.

alternative option redraw seems not allowed for subentities. thus I'm thinking messy and lengthy way.

0 Likes