火星普通用户前辈您好:
我今天试了好久,都没找出一个所以然来,能否指点下是哪个函数?万分感谢。
请问是这里面:
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_auxfun]UF_PATH_create_auxfun[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_circular_motion]UF_PATH_create_circular_motion[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_clamp]UF_PATH_create_clamp[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_coolant_off]UF_PATH_create_coolant_off[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_coolant_on]UF_PATH_create_coolant_on[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_cut_wire]UF_PATH_create_cut_wire[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_cutcom]UF_PATH_create_cutcom[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_dwell]UF_PATH_create_dwell[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_fedrat]UF_PATH_create_fedrat[/url]
[url=mkMSITStore:F:\KNOWLEDGE\UG-CUSTOMIZE\ug_open_api.chm::/uf_path/global.html#UF_PATH_create_flush]UF_PATH_create_flush[/url]
UF_PATH_create_flush_tank
UF_PATH_create_helical_motion
UF_PATH_create_linear_motion
UF_PATH_create_op_skip
UF_PATH_create_op_stop
UF_PATH_create_opmessage
UF_PATH_create_origin
UF_PATH_create_power
UF_PATH_create_pprint
UF_PATH_create_prefun
UF_PATH_create_rotate
UF_PATH_create_select_head
UF_PATH_create_seqno
UF_PATH_create_set_mode
UF_PATH_create_spindle_off
UF_PATH_create_spindle_on
UF_PATH_create_stop
UF_PATH_create_text
UF_PATH_create_thread_wire
UF_PATH_create_tool_change
UF_PATH_create_tool_length_comp
UF_PATH_create_tool_preselect
UF_PATH_create_wire_angle
UF_PATH_create_wire_cutcom
UF_PATH_create_wire_guides
UF_PATH_end_tool_path
UF_PATH_init_tool_path
还是在这个uf_param_indices.h头文件里面
******************************************************************************
Copyright (c) 2006 Unigraphics Solutions, Inc.
DIMENSITION REPORT
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <uf.h>
#include <uf_ui.h>
#include <uf_part.h>
#include <uf_disp.h>
#include <uf_curve.h>
#include <uf_drf.h>
#include <uf_modl.h>
#include <uf_disp.h>
#include <uf_obj.h>
#include <uf_csys.h>
#include <uf_ui_ont.h>
#include <math.h>
#include <uf_so.h>
#include <uf_oper.h>
#include <UF_EVAL.h>
#include <uf_layer.h>
#include <uf_draw.h>
#include <uf_setup.h>
#include <uf_object_types.h>
#include <uf_cam_planes.h>
#include <uf_cam_prefs.h>
#include <uf_oper_spec.h>
#include <uf_param_indices.h>
#include <uf_path.h>
#include <uf_mtx.h>
#include <uf_vec.h>
#include <uf_ncgroup.h>
#include <time.h>
#include <string.h>
#include "custom.h"
#define UF_CALL(X) (report( __FILE__, __LINE__, #X, (X)))
static int report( char *file, int line, char *call, int irc)
{
if (irc)
{
char messg[133],str[133];
printf("%s, line %d: %s\n", file, line, call);
(UF_get_fail_message(irc, messg)) ?
sprintf(str," returned a %d\n", irc) :
sprintf(str," returned error %d: %s\n", irc, messg);
uc1601(str,1);
}
return(irc);
}
static void do_ugopen_api(void)
{
char str[100];
char str1[133];
int count;
int type;
int subtype;
tag_t* objects;
tag_t path_id;
tag_t value;
char name[133];
tag_t plane_tag;
double origin_point[ 3 ]={ 0,0,150 };
double plane_normal[ 3 ]={ 0,0,1 };
UF_MODL_create_plane (origin_point, plane_normal, &plane_tag );
UF_UI_ONT_ask_selected_nodes (&count, &objects);
for( int i=0;i<count;i++ )
{
UF_OBJ_ask_name (objects, name );
// UF_PARAM_set_tag_value (objects, UF_PARAM_FLOOR, plane_tag );
// UF_OBJ_ask_type_and_subtype (objects, &type, &subtype );
// sprintf( str1,"%d",type );
// uc1601( str1,1 );
// UF_OPER_ask_path( objects[0], &path_id);
//uc1601( name,1 );
}
}
/*ARGSUSED*/
void ufusr(char *param, int *retcode, int param_len)
{
if (!UF_CALL(UF_initialize()))
{
do_ugopen_api();
UF_CALL(UF_terminate());
}
}
int ufusr_ask_unload(void)
{
return (UF_UNLOAD_IMMEDIATELY);
}
欢迎光临 iCAx开思工具箱 (https://t.icax.org/) | Powered by Discuz! X3.3 |