How do I determine if an x-clip boundary is inverted?

How do I determine if an x-clip boundary is inverted?

Anonymous
Not applicable
1,193 Views
2 Replies
Message 1 of 3

How do I determine if an x-clip boundary is inverted?

Anonymous
Not applicable

Kean Walmsley had a nice article on how to retrieve the xclip boundary from a block reference here: http://through-the-interface.typepad.com/through_the_interface/2012/10/querying-for-xclip-informatio...

But his solution doesn't retrieve all the information, specifically whether or not a clip boundary is inverted.

 

I've been trying for a couple of days now to retrieve this info.  I'm able open the spatial filter object and I've tried several different methods to retrieve this data but have been unsuccessful.  I've tried the extensionDictionary, getFieldDictionary, xData, getBinaryData, and dxfOut methods on the AcDbSpatialFilter object but none of these have provided me with the data I seek.

 

I've attached a simple drawing that includes an inverted clip boundary.  Any help would be much appreciated.

0 Likes
Accepted solutions (1)
1,194 Views
2 Replies
Replies (2)
Message 2 of 3

owenwengerd
Advisor
Advisor
Accepted solution

It looks like Autodesk forgot to expose this setting via the API, or to include it in the DXF output. Maybe you can ascertain it by calling clipVolumeIntersectsExtents() with a volume that is completely inside the boundary. The setting is filed to the DWG filer via dwgOutFields(), so if all else fails, you could write a custom AcDbDwgFiler to capture the setting.

--
Owen Wengerd
ManuSoft
Message 3 of 3

Anonymous
Not applicable

Thanks for the response; if only I had tried the dwgOutFields technique.  I see that an Int16 is written out immediately following the AcGePoint2d objects defining the boundary and this appears to be a flag which indicates whether or not the boundary is inverted.  Thanks again for the suggestion.

0 Likes