Message 1 of 5
Is there another way to remove entities from selection set when user box select?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
void CMyAcEdSSGetFilter::ssgetAddFilter(int ssgetFlags, AcEdSelectionSetService& service,
const AcDbObjectIdArray& selectionSet, const AcDbObjectIdArray& subSelectionSet)
{
auto stampBeg = std::chrono::steady_clock::now();
AcGeIntArray arr;
//arr.setLogicalLength(subSelectionSet.length());
for (auto i = 0; i < subSelectionSet.length(); i++)
{
service.remove(i);
}
//service.remove(arr);
auto stampEnd = std::chrono::steady_clock::now();
double time_second = std::chrono::duration<double>(stampEnd - stampBeg).count();
}
up code sample is worked. But from test case :remove all 260000 entities in Autocad2018 costs 15 second. It's NOT
acceptable.
Is there another way to remove entities by filters? like filter by AcRxClass?