Test to guarantee Region entity?

Fatfreek

Usenet Archive
Joined
Oct 26, 2000
Messages
96
Reaction score
0
I'm drawing a blank. I need to test certain entities to guarantee they are Regions. Any suggestions?

My motive here is I just ran into a flaw in my code up front that is not properly testing for closed LWpolylines. The following selection snippet allows open ones to get through. Perhaps if I can bullet proof this segment I won't need the Region test above.

(setq PolyOne ;_closed lwpolys only
(ssget ":S"
'((-4 . "&")
(70 . 1)
)
)
)

I am using 2004 SP 1A under Win2K Pro
Len Miller
 
Sorry for the alarm, part of which, was false. The part of wanting to test that an entity is a Region is still true.

I thought my code (see below) was not properly testing for closed LWpolylines. I was wrong. I'd forgot that it had, in fact warned me that a certain irregular boundary polyline was not closed. At the time, I simply halted the automated routine, brought up the Properties dialog box, checked the Closed pulldown from No to Yes, and went back into the automated routine (which again failed). Yes, the routine failed to create a Region of that polyline, not because it was open but because there was this appendage (not visible till a close Zoom). Oh, yes, there was closure at this vertex, but one portion of this polyline being nearly tangent to the adjacent portion, went beyond the closed joint and protruded for a very short distance.

That, apparently, is what the Region command objected to.

Len Miller
 

Latest threads

Back
Top