ug二次开发 transform uf5947 不能平移的问题

在NX4及高版本上想对一个body进行平移,有这个函数UF_MODL_transform_entities,但这个函数是在nx5上才有的,nx4是没有这个函数的。后来发现有uf5947这个老函数,这个函数能够执行成功,最后一个参数返回的也是success,但是发现界面显示中却没有移动。

解决办法:

在使用uf5947前得知需要用UF_MODL_delete_body_parms(delete_body_list)来取消特征参数,代码如下

uf_list_p_t delete_body_list;
UF_CALL(UF_MODL_create_list(&delete_body_list));
UF_CALL(UF_MODL_put_list_item(delete_body_list, tBody));
/* Deleting all of the parametric information from the */
/* solid body in the delete_body_list.*/
UF_CALL(UF_MODL_delete_body_parms(delete_body_list));
UF_CALL(UF_MODL_delete_list(&delete_body_list));

uf5947(matrix,tObjects,&n_objects,&move_or_copy,&dest_layer,&trace_curves,&copies,&trace_curve_group,&status);

猜你喜欢

转载自blog.csdn.net/hustoysj/article/details/8946639