|
讲一个UGCAM二次开发中创建操作的函数写法。
void do_open_api()
{
// char *type_name="mill planar";
// char *subtype_name="FACE_MILLING_AREA";
char *type_name="balda_cu_dia6";
char *subtype_name="CEM6R0_PLANE_FACE";
char opername[133+1];
tag_t oper_tag;
tag_t group=NULL;
char *filename="d:list.txt";
int ir3=1;
//生成一个加工操作
UF_OPER_create(type_name,subtype_name,&oper_tag);
//获得操作的组名
UF_OPER_ask_name_from_tag(oper_tag,opername);
//UF_OPER_ask_program_group ();
// uc1601(opername,1);
UF_UI_open_listing_window();
UF_UI_write_listing_window(opername);
UF_UI_write_listing_window("\n");
uc4400(8,filename,ir3);
UF_UI_write_listing_window(filename);
//设置加工参数
//UF_OPER_set_machining_data (oper_tag);
}
原帖地址:http://www.ugufun.com/?p=89
|
|