429570094 发表于 2017-10-27 09:11:49

UG 遍历部件获得体的tag

file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\429570094\QQ\WinTemp\RichOle\OD%I71F%SOW9IWT3R8G2FZW.png如何获得左边这些体的tag,我这个方法总是循环多出了很多的tag
tag_tdisp_part_tag=NULL_TAG,next_tag=NULL_TAG,subtype=NULL_TAG;
                                                             inttype 1=UF_solid_type;
                                                             double tj=0;
                                                             disp_part_tag=UF_PART_ask_display_part ( ); //得到当前部件文件标识
                                                         UF_OBJ_cycle_objs_in_part(disp_part_tag,type1,&next_tag);
                                                             while(next_tag!=NULL_TAG )
                              {
                                       

                                        double acc_value [ 11 ] ={.01,0,0,0,0,0,0,0,0,0,0};
               double mass_props [ 47 ];
               double statistics [ 13 ];
               UF_MODL_ask_mass_props_3d(&next_tag,1,1,3,NULL ,1,acc_value,mass_props,statistics);
                  tj = mass_props+ tj;
                                 UF_OBJ_cycle_objs_in_part(disp_part_tag,type,&next_tag);
                                       
                              }

xasust 发表于 2017-11-8 18:54:50

用NXOPEN的BodyCollection

Yuluoshui 发表于 2017-11-30 14:16:09

我想问一下,是怎么做到,在特征树上,只有“体”,没有诸如拉伸,旋转之类的特征的?

pengfei2010 发表于 2017-12-1 08:48:38

可能 要通过几何属性判断

难人* 发表于 2018-9-2 15:17:36

用NXOPEN的BodyCollection

123.321123 发表于 2018-12-15 12:49:46

666666

杨访青 发表于 2021-11-5 11:37:30

Yuluoshui 发表于 2017-11-30 14:16
我想问一下,是怎么做到,在特征树上,只有“体”,没有诸如拉伸,旋转之类的特征的?

移除参数,在编辑里面,一般模具设计全杀参,产品设计不杀参,其实有同步建模,只要不是量产的模板文件,都可以不要参数
页: [1]
查看完整版本: UG 遍历部件获得体的tag