iCAx开思工具箱

标题: 救命阿.... [打印本页]

作者: yow    时间: 2003-9-5 11:14
标题: 救命阿....
請教一下各位大哥
以下是我的程式碼....
有一個錯誤...
可是我不知道怎麼改....
救命ㄚ...
  
#include <stdio.h>
#include <uf.h>
#include <uf_exit.h>
#include <uf_object_types.h>
#include <uf_ui.h>
#include <uf_disp.h>
  
#if ! defined ( __hp9000s800 ) && ! defined ( __sgi ) && ! defined ( __sun )
#  include <strstream>
#   include <iostream>
  using std:strstream;
  using std::endl;  
  using std::ends;
  using std::cerr;
#else
#  include <strstream.h>
#   include <iostream.h>
#include <uf_modl.h>
#endif
#include "newMASK.h"
#define UF_CALL(X) (report(_FILE_, _LINE_, #X,(X)))
//----------------------------------------------------------------------------
//  Activation Methods
//----------------------------------------------------------------------------
  
//  Unigraphics Startup
//      This entry point activates the application at Unigraphics startup
extern "C" DllExport void ufsta( char *param, int *returnCode, int rlen )
{
    /* Initialize the API environment */
    int errorCode = UF_initialize();
  
    if ( 0 == errorCode )
    {
        /* TODO: Add your application code here */
        char *message = "select objects";
    UF_UI_selection_options_t opts;
  
    UF_UI_mask_t mask[6] = {{UF_line_type, 0, 0},
  {UF_circle_type, 0, 0},
  {UF_conic_type, UF_all_subtype, 0},
  {UF_spline_type, 0, 0},
  {UF_solid_type, 0, 0},
  {UF_point_type, 0, 0}};
  
    tag_p_t objects;
opts.other_options = 0;
opts.reserved = NULL;
opts.num_mask_triples = 5;
opts.scope = UF_UI_SEL_SCOPE_WORK_PART_AND_OCC;
opts.mask_triples = [$mask[0]]
  
int irc = 0;
int bbb = 0;
int response, count;
  
       irc = UF_UI_select_by_class(message,[$opts,&response,&count,&objects)]
  
       bbb = UF_UI_select_by_class(message,[$opts,&response,&count,&objects)]
  
int NP1 , IP3,IP4,IP5,IP6,IP7,IP8,IR9,rr;
double RP2;
  
     NP1 = irc;
     RP2 = 0.005;
       IP3 = 1;
       IP4 = bbb;
  UF5409(NP1,RP2,IP3,IP4,IP5,IP6,IP7,IP8,IR9);
  
        /* Terminate the API environment */
        errorCode = UF_terminate();
    }
  
--------------------Configuration: newMASK - Win32 Debug--------------------
Compiling...
newMASK.cpp
E:\UG-A\newMASK\newMASK.cpp(78) : error C2065: 'UF5409' : undeclared identifier
Error executing cl.exe.
  
newMASK.obj - 1 error(s), 0 warning(s)

作者: spline    时间: 2003-9-5 12:59
UF5409这个函数是包含在uf_modl.h这个头文件中的。
建议尽量少用这种“数字”函数
作者: yow    时间: 2003-9-8 13:28
謝謝spline大哥的回復
  
    可是我有加#include <uf_modl.h>  
       
       如果不用UF5409 ,(我要用線剪開面.),那我應該用什麼比較好呢...
  
        




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