AcDbVoidPtrArray regions; AcDbRegion::createFromCurves(entities, regions); if (regions.length() < 1) { return Acad::eInvalidInput; }