iCAx开思工具箱

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 24787|回复: 0
打印 上一主题 下一主题

用过UF_MODL_create_sweep()的请进!

[复制链接]
跳转到指定楼层
楼主
发表于 2003-8-6 13:41:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
我想用下面的程序实现截面曲线绕引导线扫描,连接通过了,但进入UG后,却
不执行。我把信息输出程序段分别放在UF_MODL_create_sweep前后,发现在前时有信息输出,而在后就什么也没有,i_ret前面已经定义过了。猜想是UF_MODL_create_sweep有问题。请高手指教!!::y
              UF_STRING_t s_guide,s_section,s_spine,orien_id;
    UF_METHOD_t orientation,scaling;
    int alignment,inter,body_type;
              UF_FEATURE_SIGN boolean;
    double tol[3];
    tag_t sweep_tag1;
  
      UF_MODL_init_string_list([$s_guide)]
      UF_MODL_create_string_list(1,1,[$s_guide)]
    UF_MODL_init_string_list([$s_section)]
      UF_MODL_create_string_list(1,1,[$s_section)]
    UF_MODL_init_string_list([$s_spine)]
      UF_MODL_create_string_list(1,1,[$s_spine)]
    UF_MODL_init_string_list([$orien_id)]
      UF_MODL_create_string_list(1,1,[$orien_id)]
  
    s_guide.num=1;
    s_guide.string[0]=1;
    s_guide.dir[0]=1;
    s_guide.id[0]=spline_helix_tag1;
    s_section.num=1;
    s_section.string[0]=1;
    s_section.dir[0]=1;
    s_section.id[0]=spline_chi_tag;
    s_spine.num=0;
    orientation.method=3;
    orien_id.num=1;
                  orien_id.string[0]=1;
    orien_id.dir[0]=1;
    orien_id.id[0]=spline_helix_tag2;
    orientation.id=[$orien_id]
    scaling.method=1;
    scaling.value[0]=1.0;
    alignment=1;
    body_type=1;
    boolean=UF_NULLSIGN;
    tol[0]=0.001;
    tol[1]=0.01;
    tol[2]=0.001;
     
     UF_UI_open_listing_window();
    if(i_ret==0)
      UF_UI_write_listing_window("successful");
    else
    {
      UF_UI_write_listing_window("failure");
    }
  
    
   i_ret=UF_MODL_create_sweep(&s_guide,&s_section,&s_spine,&orientation,
                        &scaling,&alignment,&inter,&body_type,boolean,tol,
              [$sweep_tag1)]  
     UF_MODL_free_string_list([$s_guide)]
      UF_MODL_free_string_list([$s_section)]
      UF_MODL_free_string_list([$s_spine)]
      UF_MODL_free_string_list([$orien_id)]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 支持支持
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手板模型制作,在线3D打印服务

QQ|小黑屋|手机版|开思工具箱 CAD工具箱_CAM工具箱  

GMT+8, 2024-5-6 19:57 , Processed in 0.010966 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表