iCAx开思工具箱
标题:
关于TUBE的问题
[打印本页]
作者:
trical
时间:
2008-9-4 23:25
标题:
关于TUBE的问题
哪位高手可以帮忙看一下应该怎么改,实现:点击曲线,生成管道。现在这个程序只能生成一次管道,再点就不管用了
#include <stdio.h>
#include <uf.h>
#include <uf_modl.h>
#include <uf_ui.h>
static int sel_init_proc(UF_UI_selection_p_t select,void *user_data)
{
int err,num_tripels=2;
UF_UI_mask_t mask_triples[]={UF_spline_type,0,0,UF_line_type,0,0,};
err=UF_UI_set_sel_mask(select,UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC,
num_tripels,mask_triples);
if(err==0) return UF_UI_SEL_SUCCESS;
else return UF_UI_SEL_FAILURE;
}
static void do_ugopen_api(void)
{
char cue[] = "选择曲线";
char title[] = "选择曲线";
int response, count, i;
tag_p_t obj_line;
int obj_tube;
char*body_limit[2]={"outer_diameter=16","inner_diameter=0"};
tag_t generators[1];
UF_MODL_SWEEP_TRIM_object_p_t trim_data = NULL;
UF_FEATURE_SIGN mode_sign = UF_NULLSIGN;
if(((UF_UI_select_with_class_dialog(cue, title, UF_UI_SEL_SCOPE_WORK_PART,
sel_init_proc, NULL, &response, &count, &obj_line))) == 0)
{
printf("obj_line count = %d\n",count);
if (response == UF_UI_OK && count > 0)
{
for (i=0; i<count; i++)
{
printf("obj_line tag = %d\n", obj_line
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3