求各位二次开发大佬看看为啥咱uf5947报错
UF_initialize();//创建块
double origin={0.0,0.0,0.0};
char* dimensions = { "100","200","300" };
UF_FEATURE_SIGN sign = UF_NULLSIGN;
tag_t parttag = NULL_TAG;
UF_MODL_create_block1(sign, origin, dimensions, &parttag);
//创建平移或复制的矩阵
double tra = { 500.0,500.0,500.0 };
double mix;
uf5943(tra, mix);
//测试平移或复制
int number_obj = 1;
int dest_layer = 0;
int move_or_copy = 1;
int trace_curvers = 2;
tag_t copies = NULL_TAG ;
tag_t trace_curve_group = NULL_TAG;
int status = NULL;
tag_t obj[] = { parttag };
uf5947(mix, obj, &number_obj, &move_or_copy, &dest_layer, &trace_curvers, &copies, &trace_curve_group, &status);
char message;
sprintf(message, " % d", status);
uc1601(message, 1);
UF_terminate();咱本来是想测试复制块的,但是会报错askusermessage( ) or askSyslogMessage,无法得到status状态码
于是我试试平移,发现这个代码无法成功,status状态码是3,即Invalid Object (Not Alive Or Not
Transformable)。求教各位大佬看看哪里错了
uf5947操作的是object而不是Feature
页:
[1]