#pragma once namespace ENT2DB { void export2Db(); void importByDb(); void extractSection(); template static bool isEntity(AcDbEntity *pEnt) { if (!pEnt) return false; if (pEnt->isKindOf(T::desc())) return true; return false; } template static bool isEntity(AcDbObjectId id) { AcDbObjectPointer pEnt(id, AcDb::kForRead); if (pEnt.openStatus() == Acad::eOk) { return isEntity(pEnt); } return false; } }