NX二次開發中特徵找體UF_MODL_ask_feat_body
阿新 • • 發佈:2018-12-11
UF_initialize(); //建立塊 UF_FEATURE_SIGN Sign = UF_NULLSIGN; double Corner_Pt[3] = {0.0, 0.0, 0.0}; char *Edge_Len[3] = {"100", "200", "100"}; tag_t BlkTag = NULL_TAG; UF_MODL_create_block1(Sign, Corner_Pt, Edge_Len, &BlkTag); //特徵找體 tag_t BodyTag = NULL_TAG; UF_MODL_ask_feat_body(BlkTag, &BodyTag); //建立基準平面 double Origin_Point[3] = {500.0, 500.0, 500.0}; double Plane_Normal[3] = {0.0, 0.0, 1.0}; tag_t Plane_Tag = NULL_TAG; UF_MODL_create_fixed_dplane(Origin_Point, Plane_Normal, &Plane_Tag); //建立映象體 tag_t Mirrored_Body = NULL_TAG; UF_MODL_create_mirror_body(BodyTag, Plane_Tag, &Mirrored_Body); UF_terminate();