UG二次开发作业代码.docxVIP

  • 16
  • 0
  • 约8.58千字
  • 约 10页
  • 2024-04-23 发布于北京
  • 举报

UG二次开发作业代码

UG二次开发作业代码供参考学习。

第一题球体打孔

#include

#include

#include

#defineUF_CALL(X)(report(__FILE__,__LINE__,#X,(X)))

staticintreport(char*file,intline,char*call,intirc)

{

if(irc)

{

charmessg[133];

printf(%s,line%d:%s\n,file,line,call);

(UF_get_fail_message(irc,messg))?

printf(returneda%d\n,irc):

printf(returnederror%d:%s\n,irc,messg);

}

return(irc);

}

staticvoiddo_ugopen_api(void)

{

UF_FEATURE_SIGNsign=UF_NULLSIGN;

tag_ttarg_tag;

doublecenter[3]={0.0,0.0,0.0};

char*diam=100;

tag_tsphere_obj_id;

UF_CALL(UF_MODL_create_sphere(sign,targ_tag,center,d

文档评论(0)

1亿VIP精品文档

相关文档