【MSCE C++】ScanCriteria的问题

ScanCriteriaP scan= ScanCriteria::Create();
scan->SetModelRef(ACTIVEMODEL);
scan->SetDrawnElements();
std::vector<ElementRefP> list;
mdlScanCriteria_setDisplaySetTest(scan, true);
scan->SetElemRefCallback(ScanHelper::CallBack, (void*)&list);
scan->AddSingleElementTypeTest(MSElementTypes::CELL_HEADER_ELM);
scan->Scan();

为什么设置了ElementType,扫描结果还有其它类型元素?输出格式为ID;ElementType,

另外,mdlScanCriteria_setDisplaySetTest(scan, true);应该是只扫描可见元素吧,模型里全选只显示有5个元素,但是扫描结果有31个

附件dgn为OBD创建

scantest.dgn