ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XCLIP filtering

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
283 Views, 0 Replies

XCLIP filtering

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost