马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
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(); |