NX二次开发PK_EDGE_ask_next_in_body()获取相连边

bool getcontainedge(tag_t edge,tag_t *next_edge)
{
   next_edge=null;
   tag_t ps_tag;
   UF_PS_ask_ps_tag_of_object(edge,&ps_tag);
   Pk_EDGE_t pkedge=ps_tag;
   Pk_EDGE_t pknextedge=0;
   Pk_EDGE_ask_next_in_body(pkedge,&pknextedge);
   UF_PS_ask_object_of_ps_tag(pknextedge,&next_edge);
   if(next_edge!=null)return true;
   return false;
}

你可能感兴趣的:(c++,edge)