文章作者:里海
简介:
删除所有图层类别
代码:
//删除工作部件所有图层类别对象
void DelAllCategoriesFromWorkPart(vector<tag_t> &Categories)
{
tag_t tagWorkPart = UF_ASSEM_ask_work_part();
tag_t tagFeatTemp = 0;
UF_OBJ_cycle_objs_in_part(tagWorkPart, UF_layer_category_type, &tagFeatTemp);
if (tagFeatTemp == NULL_TAG)
{
return;
}
while (tagFeatTemp != NULL_TAG)
{
UF_OBJ_delete_object(tagFeatTemp);
UF_OBJ_cycle_objs_in_part(tagWorkPart, UF_feature_type, &tagFeatTemp);
}
return;
}