Select Block by picking inside its extents

Select Block by picking inside its extents

Paul.GrafPZAZ7
Advocate Advocate
704 Views
11 Replies
Message 1 of 12

Select Block by picking inside its extents

Paul.GrafPZAZ7
Advocate
Advocate

Is there a way to select a block by picking inside it's extent, without actually selecting an entity within the block?

I have a block named "SHEETLAYOUT" that is a simple rectangle that will define a model view extent. I want to able to pick inside the block and create a saved view without having to select the edge of the rectangle. Since I have the blocks laid out a grid pattern, I want to make sure I am selecting the intended block. Hope this makes sense.

 

TIA,

Paul

 

 

0 Likes
705 Views
11 Replies
Replies (11)
Message 2 of 12

Kent1Cooper
Consultant
Consultant

@Paul.GrafPZAZ7 wrote:

Is there a way to select a block by picking inside it's extent, without actually selecting an entity within the block? ....


Not that I know of.  There could be multiple Blocks that a given point is within the extents of, so even if there were such a capability, you would have the same issue as with multiple drawn entities crossing or overlapping at the same point.  And if there's [for example] a Line or something that crosses through those extents, but is not part of the Block, if you want to pick the Line in that area, you would also need to specify whether you want that Line or the Block.  Etc.

Kent Cooper, AIA
0 Likes
Message 3 of 12

komondormrex
Mentor
Mentor

you'd better shown a picture or a sample of what you are intended to do.

0 Likes
Message 4 of 12

Sea-Haven
Mentor
Mentor

Something like this which takes rectangs and makes layouts.

SeaHaven_0-1687577981788.png

 

0 Likes
Message 5 of 12

Moshe-A
Mentor
Mentor

@Paul.GrafPZAZ7 ,

 

Are we talking about title block on a layout - yes?!

then why picking a point is needed?  AutoLISP has a great (ssget) function to filter from all...

 

check GETMYBLK command.

 

Moshe

 

 

(defun c:getMYblk (/ ss)
 (if (setq ss (ssget "_x" (list '(0 . "insert") '(2 . "sheetlayout") (cons '410 (getvar "ctab")))))
  (sssetfirst nil ss)
  (prompt "\nNot found.")
 )
 (princ)
); c:getMYblk

 

0 Likes
Message 6 of 12

john.uhden
Mentor
Mentor

@Paul.GrafPZAZ7 

Something I would probably do is to DVIEW;TWIST to each rectangle, ZOOM;Window, and save an appropriately named view for each, in the way @Sea-Haven showed.

Your name is very familiar... Birdsall?  Ocean County Engineering Dept?

@Sea-Haven :  Does C3D already provide a trick for that?

John F. Uhden

0 Likes
Message 7 of 12

Kent1Cooper
Consultant
Consultant

@john.uhden wrote:

.... Something I would probably do is DVIEW;TWIST....


We don't know that the situation is anything like what @Sea-Haven suggested.  In fact, the last sentence of Message 1 about the "grid pattern" suggests to me that it is not, but that the Block outlines overlay each other, which is why they want to pick inside rather than on an edge that may coincide with that of another Block.  @Paul.GrafPZAZ7, a small sample drawing would clarify the nature of your need.

Kent Cooper, AIA
0 Likes
Message 8 of 12

Sea-Haven
Mentor
Mentor

Version 2 of make layouts supports rectangs user placed. Have a look at video. Based on a users title block. Can have multiple title blocks to choose from. Rectang created matches mview size at scale, no need to pick rectang as uses ssget rectangs via layer than makes a layout for each rectang. Metric and imperial. As per other version can move or rotate or delete a rectang.

 

 

0 Likes
Message 9 of 12

Kent1Cooper
Consultant
Consultant

That still doesn't sound like it has any relationship to the last sentence in Message 1, with Blocks already placed.  @Paul.GrafPZAZ7 ?

Kent Cooper, AIA
0 Likes
Message 10 of 12

Paul.GrafPZAZ7
Advocate
Advocate

Thanks, for everyones help & advice.  I'm rethinking the approach to my program now.

0 Likes
Message 11 of 12

john.uhden
Mentor
Mentor

Ya know, @Paul.GrafPZAZ7 , I think you'll have more success picking the block reference itself than trying to have AutoLisp find it with a wild shot into space.

John F. Uhden

0 Likes
Message 12 of 12

Sea-Haven
Mentor
Mentor

You need to post a sample dwg so we can see what it is your trying to do rather than guessing. 

0 Likes