XCLIP filtering

XCLIP filtering

Anonymous
Not applicable
324 Views
0 Replies
Message 1 of 1

XCLIP filtering

Anonymous
Not applicable
The following works great for creating an XCLIP for an xref/block -

// create the filter
AcDbSpatialFilter* pFilter = new AcDbSpatialFilter;
if(Acad::eOk == pFilter->setDefinition(area->clip, AcGeVector3d::kZAxis,
area->elevation,
ACDB_INFINITE_XCLIP_DEPTH, -ACDB_INFINITE_XCLIP_DEPTH, true))
{
//add it to the extension dictionary of the block reference
if(Acad::eOk != AcDbIndexFilterManager::addFilter(xref, pFilter)) delete
pFilter;
else pFilter->close();
}
else delete pFilter;

Is it possible to get the ids of the entities included in the clip (relevant
functions, etc.)?

The docs on AcDbFilter/AcDbIndex/AcDbIndexFilterManager are pretty obtuse
(he says nicely)...

|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: byron@cadwerx.net
| web site: http://www.cadwerx.net
|
0 Likes
325 Views
0 Replies
Replies (0)