|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
在VC6.0下实现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();
为什么加载不进去呢 |
|