to get "boundingbox" of the blank space in a hatch

to get "boundingbox" of the blank space in a hatch

devitg
Advisor Advisor
727 Views
5 Replies
Message 1 of 6

to get "boundingbox" of the blank space in a hatch

devitg
Advisor
Advisor

Hi all , I need to get de so called, but I know it is not so, bounding box , of the blank space at a hatch . please see the attached DWG 

I need the   "like" 'dl  'ur  . 

 

Iwill use it  increased a bit to do a (ssget  "c"  -dl +ur  '( (0 . "HATCH")))

-dl is a point a bit downward   dl 

and +ur is a point a bit upward  ur 

Guess a 10 % more than distance dl ur

In fact I need to select the Hatch . 

 

 

 

 

 

 

 

 

 

 

 

 

 

devitg_0-1625586185310.png

 

 

 

 

0 Likes
Accepted solutions (1)
728 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant

In order to find the shape of the blank space, do you not need to select the Hatch pattern?  If you have it selected, can you explain the purpose of using the blank space in it as a basis for locations by which to select the Hatch pattern [again]?

Kent Cooper, AIA
0 Likes
Message 3 of 6

devitg
Advisor
Advisor

@Kent1Cooper , please tell me how to select the text inside the hatch . 

 

The hacth  have no boundary or whatsever way to select the text inside the blank area.

 

That is the fact. 

 

I'm doing in reverse , selected the text , I can seletc the hatch by the 

 

 (ssget "_C" -dl   + ur  '( ( 0 .  "HATCH )))

 

 

 

0 Likes
Message 4 of 6

Kent1Cooper
Consultant
Consultant

That's different.  First it was about finding the hole in the Hatch pattern, with no reference to the MText; is it now about selecting the MText, and I assume figuring out the size of the hole from that?

 

If the Hatch was done with the MText as an island in it, the offset from the MText [as a percentage of its height or something] should be in some System Variable value I haven't been able to find.  I tried the TEXTMASK Offset value, but that's not it.  But even if it were, there's no guarantee it hasn't been changed since the Hatch was drawn, so using the current value may not be reliable.

 

I would start with the MText's bounding box, but the width of that comes from its defining-box width, which in the case of your sample drawing is very much narrower than the contents.  Still, some kind of expansion of that should still capture the Hatch pattern in a Crossing selection, but how to determine how much to expand around it is what I don't see how to do in a reliable way, unless someone can direct us to what determines the island area around Mtext when Hatching.

Kent Cooper, AIA
0 Likes
Message 5 of 6

ronjonp
Mentor
Mentor
Accepted solution
0 Likes
Message 6 of 6

devitg
Advisor
Advisor

@Kent1Cooper .   Thanks for the explanation 

0 Likes