bool DelAllObjofName(const char* name)
{
std::vector<tag_t> allNameObj;
tag_t object = NULL_TAG;
UF_OBJ_cycle_by_name(name, &object);
do
{
if (object != NULL_TAG)
{
allNameObj.push_back(object);
}
UF_OBJ_cycle_by_name(name, &object);
} while (object != NULL_TAG);
for (size_t i = 0; i < allNameObj.size(); i++)
{
UF_OBJ_delete_object(allNameObj[i]);
}
return true;
}