iCAx开思工具箱

标题: 【注意】访问旧资料的方法 [打印本页]

作者: zzz    时间: 2004-4-22 22:05
标题: 【注意】访问旧资料的方法
转贴:  
若只是要看論壇中的舊資料,請按網頁版面右上方的 "只讀論壇" 的功能  
或者修改网页地址:  
TOPIC后面加个o就行了  
如:https://icax.org/cgi-bin/ut/topico_show.cgi?id=40418&pg=1&h=1&bpg=1&age=0  
  
这是从solid edge 版转过来的。感谢HZ,感谢神医。
作者: dhj007    时间: 2004-5-7 16:02
好!谢谢!顶!
作者: mickey    时间: 2004-5-15 00:41
Thankyou
作者: chunsong2000    时间: 2004-7-20 09:54
我顶
作者: zcyq2003    时间: 2004-8-17 09:30

作者: iszp    时间: 2004-9-2 22:07
斑竹你好:我在UIStyler对话框中能显示uc1601中的内容,却总是不能调用UF_UI_select_with_single_dialog,请指点
/* -------------------------------------------------------------------------
  * Callback Name: TUTAI_action_position_tool_cb
  * This is a callback function associated with an action taken from a
  * UIStyler object.  
  *
  * Input: dialog_id   -   The dialog id indicate which dialog this callback
  *                        is associated with.  The dialog id is a dynamic,
  *                        unique id and should not be stored.  It is
  *                        strictly for the use in the UG/Open API:
  *                               UF_STYLER_ask_value(s)  
  *                               UF_STYLER_set_value   
  *        client_data -   Client data is user defined data associated
  *                        with your dialog.  Client data may be bound
  *                        to your dialog with UF_MB_add_styler_actions
  *                        or UF_STYLER_create_dialog.                  
  *        callback_data - This structure pointer contains information
  *                        specific to the UIStyler Object type that   
  *                        invoked this callback and the callback type.
  * -----------------------------------------------------------------------*/
int TUTAI_action_position_tool_cb ( int dialog_id,
             void * client_data,
             UF_STYLER_item_value_type_p_t callback_data)
{
     /* Make sure User Function is available. */   
     if ( UF_initialize() != 0)  
          return ( UF_UI_CB_CONTINUE_DIALOG );
  
     /* ---- Enter your callback code here ----- */
/////////////////////////////////////////////////////////
 uc1601("请选择一个面!",1);
   ///////////////////////////////////////////
     char cue[] = "cue message";
    char title[] = "dialog title";
    int response;
    tag_t object, view;
    double cursor[3];
  
    if(!UF_CALL(UF_UI_select_with_single_dialog(cue,title,
                   UF_UI_SEL_SCOPE_NO_CHANGE, init_proc, NULL,
                   &response, &object, cursor, &view)))
  
    {
        if (response == UF_UI_OBJECT_SELECTED ||  
            response == UF_UI_OBJECT_SELECTED_BY_NAME)
        {
            printf("object tag = %d\n", object);
            if (response == UF_UI_OBJECT_SELECTED)
            {
                ////////////////////////////////////////////     
  double   center[3];
    double    dir[3];
    double    box[6];
    double    radius;
    double    rad_data;
    int      type;
    int      norm_dir;
   char     zp[100];
      UF_CALL(UF_MODL_ask_face_data(object, &type, center, dir, box, &radius,
                          [$rad_data, &norm_dir))]
  
  //The center
    UF_UI_open_listing_window();
  
  UF_UI_write_listing_window("\n");
  UF_UI_write_listing_window("The selected Face's Center Point:\n");
  
  sprintf(zp,"The center_x=%f\n",center[0]);
  UF_UI_write_listing_window(zp);
  
  ////////////////////
  sprintf(zp,"The center_y=%f\n",center[1]);
  UF_UI_write_listing_window(zp);
  
  sprintf(zp,"The center_z=%f\n",center[2]);
  UF_UI_write_listing_window(zp);
    UF_UI_write_listing_window("\n");
  ////////////////////////////////
        printf("view = %d\n", view);
                printf("cursor position = %f %f %f\n",  
                        cursor[0], cursor[1], cursor[2]);
            }
        }
        /* unhighlight selected object */
        UF_DISP_set_highlight(object,0);
    }
  
     UF_terminate ();
  
    /* Callback acknowledged, do not terminate dialog */
    return (UF_UI_CB_CONTINUE_DIALOG);  
    
    /* or Callback acknowledged, terminate dialog.    */
    /* return ( UF_UI_CB_EXIT_DIALOG );               */
  /* selection initialization procedure */
}
作者: iszp    时间: 2004-9-3 12:15
请教各位高手
作者: jingweif    时间: 2004-9-16 15:04
非常感谢。
作者: mizzle    时间: 2004-9-16 16:19
什么时候把以前的帖子都给恢复了就好了
作者: lee123aaa    时间: 2004-11-1 01:07
三人行,必有我师。
作者: chenwei005    时间: 2005-1-1 08:46
非常感谢zzz.
作者: doudou18    时间: 2005-2-20 13:02
呵呵,是啊
  
以前有一些好的贴子看不到啊
  
要是能看到就好了
作者: fjjzxl    时间: 2005-3-1 14:55
谢谢.
作者: iouzhd    时间: 2005-3-9 23:12
顶一下
作者: 白云青山    时间: 2005-3-15 21:00
明白
作者: wangyingzi    时间: 2005-6-6 13:57
有谁知道模具纹蚀工艺的
作者: wangyingzi    时间: 2005-6-6 13:58
123




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3