iCAx开思工具箱
标题:
UG装配加载
[打印本页]
作者:
keko5093
时间:
2011-6-9 18:52
标题:
UG装配加载
extern "C" DllExport void ufusr( char *parm, int *returnCode, int rlen )
{
char lp_part1[133]="G:\\DIP.prt";
char refset_name[30+1]="model";
char instance_name[30+1]="keko";
tag_t parent_tag=UF_ASSEM_ask_work_part();
double origin[3] = {0,0,0};
double csys_matrix[6] = {1,0,0,0,1,0};
int layer = -1;
tag_t lp_instance1;
UF_PART_load_status_t load_status;
tag_t DisplayPart = UF_PART_ask_display_part();
UF_ASSEM_add_part_to_assembly(parent_tag,lp_part1, refset_name,instance_name, origin,csys_matrix, layer, &lp_instance1, &load_status);
if ( load_status.file_names != NULL )
UF_free_string_array( load_status.n_parts, load_status.file_names );
if ( load_status.statuses != NULL )
UF_free(load_status.statuses );
UF_terminate();
作者:
wdg110
时间:
2011-6-20 19:23
怎么不说要问什么问题啊?
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3