资源简介
周临震、李青祝、秦珂编著的《基于UG NX系统的二次开发》基于 Sieme NX系统进行二次开发的基本知识和方法,详细介绍了二次开发的 运行模式,创建项目的方法,项目的框架结构和开发流程;二次开发中的 编程接口的约定,对象、属性、表达式和链表操作;利用UI Styler, Block UI Styler和MenuScript创建用户对话框、菜单和工具条的技术,对 话框控件的访问,常用对话框的运用;日志录制、编辑、回放以及如何通 过日志创建二次开发应用程序;访问文本文件、电子表格和数据库等外部 数据源的方法;NX Open进行零件设计、装配设计和导出工程图的方法;支 持多语言的二次开发工具集NX Open for .NET的应用技术等。本书包含了 大量有特定应用场合的开发实例,可使读者在掌握基本知识和方法的同时 ,运用NX二次开发解决实际问题。 《基于UG NX系统的二次开发》适于高等工科院校机械专业或计算机专 业的制造业信息化方向本专科学生使用,也可以作为广大从事NX二次开发 工程技术人员的参考书或自学教材。

代码片段和文件信息
/*****************************************************************************
**
** Extrude.cpp
**
** Description:
** Contains Unigraphics entry points for the application.
**
*****************************************************************************/
/* Include files */
#if ! defined ( __hp9000s800 ) && ! defined ( __sgi ) && ! defined ( __sun )
# include
# include
using std::ostrstream;
using std::endl;
using std::ends;
using std::cerr;
#else
# include
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define UF_CALL(X) (report_error( __FILE__ __LINE__ #X (X)))
static int report_error( char *file int line char *call int irc)
{
if (irc)
{
char err[133]
msg[133];
sprintf(msg “*** ERROR code %d at line %d in %s:\n+++ “
irc line file);
UF_get_fail_message(irc err);
UF_print_syslog(msg FALSE);
UF_print_syslog(err FALSE);
UF_print_syslog(“\n“ FALSE);
UF_print_syslog(call FALSE);
UF_print_syslog(“;\n“ FALSE);
if (!UF_UI_open_listing_window())
{
UF_UI_write_listing_window(msg);
UF_UI_write_listing_window(err);
UF_UI_write_listing_window(“\n“);
UF_UI_write_listing_window(call);
UF_UI_write_listing_window(“;\n“);
}
}
return(irc);
}
static int UGSC_create_extrusion
(
tag_t *faces /* I */
int faces_count /* I */
tag_t trim_obj /* I */
const char *taper_angle /* I */
char **limits /* I */
char **offsets /* I */
double extrude_dir[] /* I */
UF_FEATURE_SIGN sign /* I */
tag_t **objects /* OF */
int *object_count /* O */
)
{
int error =0;
int n_rules = 0;
int rule_types[1];
tag_t dir_tag = NULL_TAG;
tag_t section_tag = NULL_TAG;
tag_t starting_edge = NULL_TAG;
UF_SC_input_data_t sc_rules[1];
UF_SC_section_data_t section_rules[1];
UF_MODL_mswp_extrude_t extrude_data = {0};
double direction[3]={1.00.00.0};
double starting_point[3]={0.00.00.0};
double help_point[3]={0.00.00.0};
double intersection_point_1[3]={0.0 0.0 0.0};
double intersection_point_2[3]={0.0 0.0 0.0};
*object_count = 0;
*objects = NULL;
if (faces ==
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-02-20 15:16 7_零件设计\
文件 9278 2008-01-03 17:11 7_零件设计\Extrude_face.cpp
目录 0 2012-02-20 15:16 7_零件设计\boolean\
文件 2644 2005-04-23 17:14 7_零件设计\boolean\boolean.cpp
文件 188416 2005-04-23 17:14 7_零件设计\boolean\boolean.dll
文件 181739 2012-02-19 10:34 7_零件设计\coupling.zip
目录 0 2012-02-20 15:16 7_零件设计\example1\
目录 0 2012-02-20 15:16 7_零件设计\example1\Project_Model\
目录 0 2012-02-20 15:16 7_零件设计\example1\Project_Model\Debug\
文件 94282 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.dll
文件 689 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.exp
文件 59000 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.ilk
文件 2230 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.lib
文件 16656 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.obj
文件 1027272 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.pch
文件 156672 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model.pdb
文件 26528 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model_Action.obj
文件 15768 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model_Dialog.obj
文件 15967 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model_Nut_Dialog.obj
文件 15604 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\Project_Model_Spring_Dialog.obj
文件 41984 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\vc60.idb
文件 53248 2006-12-22 16:25 7_零件设计\example1\Project_Model\Debug\vc60.pdb
文件 4503 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.c
文件 4650 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.dsp
文件 549 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.dsw
文件 292 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.h
文件 66560 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.ncb
文件 60928 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.opt
文件 1785 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model.plg
文件 7420 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model_Action.c
文件 574 2006-12-22 16:25 7_零件设计\example1\Project_Model\Project_Model_Action.h
............此处省略68个文件信息
- 上一篇:操作系统课后答案(参考要点)-方敏版
- 下一篇:西工大面向对象设计与编程实验
相关资源
- Histamine excites rat lateral vestibular nucle
- Diltiazem augmented pentobarbital-induced LORR
- 地图浏览(ArcEngine)
- usb调试程序 对USB设备进行数据的读写
- Douglas-Peucker 曲线离散化算法.rar
-
AutoCAD ob
jectARX二次开发实例-状态栏 - 在delphi7下进行autocad二次开发的一个简
- Dibrugarh地区牛场土壤中潜在的益生菌
- 网上书店期末项目,BUG很多
- 调试九法.pdf
- Investigation of the Absorption Mechanism of G
- 金蝶ERP二次开发技术手册
- M5-branes的Argyres-Douglas理论的顶点算子
- Notepad++ ComparePlugin32+64
- ComparePlugin.dll
- ComparePlugin.zip
- 海康sdk说明书 二次开发参考
- MyBatis plugin 3.155 (最新版)
- AutoCAD二次开发在直齿圆柱齿轮参数化
- UG fanuc 18i后处理
- UG4.0带备刀自动换刀4轴后处理
- 用友二次开发资料含
- ComparePlugin.rar
- Revit二次开发源码大全之二
- ucbug.com-bsjlpjb.rar
- 光阵通用高拍仪控件
- 奇迹sfGM工具源码仓库工具可编译
- 精伦IDR210 IDR200 2016年最新4.1通用二次
- vs2012调试ffmpeg.c
- 2018revit二次开发论文参考
评论
共有 条评论