tag_t body = NULL_TAG;
std::vector<tag_t> sTAG;
int type = UF_solid_type;
int subtype = UF_solid_body_subtype;
for (int layerID = 0;layerID < 256; layerID++)
{
UF_LAYER_cycle_by_layer(layerID, &body);
while (body != NULL_TAG)
{
UF_OBJ_ask_type_and_subtype(body, &type, &subtype);
if (type == UF_solid_type && subtype == UF_solid_body_subtype)
{
sTAG.push_back(body);
}
UF_LAYER_cycle_by_layer(layerID, &body);
}
}
【NXOpen】遍历图层获取所有的实体对象
于 2024-12-16 15:54:28 首次发布