iCAx开思工具箱
标题:
【求助】请各位高手帮忙看一下我的程序错在那里?
[打印本页]
作者:
haiying
时间:
2004-5-17 11:24
标题:
【求助】请各位高手帮忙看一下我的程序错在那里?
我想用如下的程序生成一个图形,编译,连接都通过了,可是图形就是出不来,为什么?
请版主及各位高人不吝赐教!帮帮忙!
程序如下:
#include <stdio.h>
#include <uf.h>
#include <uf_modl.h>
#include <uf_disp.h>
#include <uf_part.h>
#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))
static int report( char *file, int line, char *call, int irc)
{
if (irc)
{
char messg[133];
printf("%s, line %d: %s\n", file, line, call);
(UF_get_fail_message(irc, messg)) ?
printf(" returned a %d\n", irc) :
printf(" returned error %d: %s\n", irc, messg);
}
return(irc);
}
static void do_ugopen_api(void)
{
double origin[3] = {0.0, 0.0, 0.0};
double orig_hole[3] = {0.0, 0.0, 12};
double orig_hole3[3] = {0.0, -80, 9.5};
double orig_hole2[3] = {0.0, -80, 0.0};
double direction[3] = {0.0, 0.0, 1.0};
char *h = "20";
char *D = "108";
char *h1 = "12";
char *d1 = "48";
char *h2 = "10.5";
char *d22 = "8";
char *d3 = "16";
char *d2 = "10.5";
char *h22 = "9.5";
char *d = "42";
char *part_name="cover";
UF_FEATURE_SIGN create = UF_NULLSIGN;
UF_FEATURE_SIGN sub = UF_NEGATIVE;
tag_t cover_id, hole_id, hole1_id, hole2_id, hole3_id,feat_obj,part;
uf_list_p_t feat_list;
int units = 1;
UF_CALL(UF_PART_new(part_name, units, &part))
作者:
ptjmy
时间:
2004-5-17 12:37
part_name好象需要输入路径,你试试,比如: char *part_name="E:\\cover.prt";
作者:
haiying
时间:
2004-5-18 14:52
我已经解决了!是坐标设置的有问题!
谢谢ptjmy!
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3