马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
为什么不能装入部件文件阿?
tag_t part=UF_ASSEM_ask_work_part();
CString part1path ="d:\\user\\UGII\\block.prt";
char *part1 = (LPSTR)(LPCTSTR)(part1path );
char * refset_name1=NULL;
double origin1[ 3 ]={0.0,0.0,0.0};
char * instance_name1="block";
double csys_matrix1[ 6 ]={1.0,0.0,0.0,0.0,0.0,1.0};
int layer1;
UF_LAYER_ask_work_layer(&layer1);
tag_t instance1;
UF_PART_load_status_t error_status1;
if ( UF_initialize() != 0)
UF_CALL(UF_ASSEM_add_part_to_assembly (part, part1, refset_name1, instance_name1, origin1,
csys_matrix1, layer1, &instance1, &error_status1));
if(error_status1.statuses!=NULL)
{
UF_free(error_status1.statuses);
}
if(error_status1.file_names!=NULL)
{
UF_free_string_array(error_status1.n_parts,error_status1.file_names);
}
UF_free_string_array(error_status1.n_parts,error_status1.file_names);
UF_free(error_status1.statuses);
UF_terminate (); |