|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
建立一个空的prt文件后,想执行以下代码实现matrix.prt文件的载入:
tag_t ParentPart;
tag_t InstTag;
char PartName[] = "F:\\UG\\work\\matrix.prt";
char RefsetName[] = "MODEL";
char InstanceName[] = "MATRIX_new";
double Origin[3] = {0.0,0.0,0.0};
double CsysMatrix[6] = {1.0,0.0,0.0, 0.0,1.0,0.0};
int layer = 1;
UF_PART_load_status_t ErrorStatus;
tag_t DisplayPart = UF_PART_ask_display_part();
 arentPart = UF_ASSEM_ask_root_part_occ(DisplayPart);
int Irc = UF_ASSEM_add_part_to_assembly(ParentPart,PartName,RefsetName,
InstanceName,Origin,CsysMatrix,layer,[$InstTag,&ErrorStatus)]
这里面的ParentPart的tag值该如何赋予?
另外请问各位高手,其它参数这样使用有没有问题?
谢谢! |
|