ObjectARX2010二次开发之 --- DXF转G代码(1)
来源:互联网 发布:mac口红怎么样 编辑:程序博客网 时间:2024/06/07 02:45
近期计话用ObjectARX2010开发一个DXF转G代码插件,计划已开始.在此记录每天编程用到的关键函数.今日用到的函数如下:
以下英文解释默认是参考ObjectARX for AutoCAD2010,部分参考MSDN.
1.acedGetAcadFrame() (参考ObjectARX for AutoCAD2010)
Description:
This function is used toget the pointer to AutoCAD's main frame window.
For building ObjectARXapplications with a static MFC library, or when not using the same shared MFCDLL as AutoCAD, a pointer to a window cannot be used. Instead, use the windowhandle. To get the window handle, use acedGetAcadFrame()->m_hWnd;
2.GetMenuItemCount() (参考MSDN,菜单部分有疑问可参考MSDN)
Description:
Determinesthe number of items in a pop-up or top-level menu.
Return Value:
The number ofitems in the menu if the function is successful; otherwise –1.
3.CreateMenu() (参考MSDN)
Description:
Creates amenu and attaches it to the CMenu object.
Return Value:
Nonzero ifthe menu was created successfully; otherwise 0.
4.CreatePopupMenu() (参考MSDN)
Description:
Creates apop-up menu and attaches it to the CMenuobject.
Return Value:
Nonzero ifthe pop-up menu was successfully created; otherwise 0.
5.AppendMenu() (参考MSDN)
Description:
Appends a newitem to the end of a menu.
Return Value:
Nonzero ifthe function is successful; otherwise 0.
6.AppendMenu() (参考MSDN)
Description:
Detaches aWindows menu from a CMenu object and returns the handle.
Return Value:
The handle,of type HMENU, to a Windows menu, if successful; otherwise NULL.
7.acedRegisterFilterWinMsg() (参考ObjectARX for AutoCAD2010)
Description:
Register a filter messagehook into AutoCAD's Windows message loop. The message passed to yourapplication can be changed and can be blocked out.
Returns TRUE ifsuccessfully registers the hook. Otherwise, returns FALSE.
AcedFilterWinMsgFn istypedef BOOL (* AcedFilterWinMsgFn)(MSG*);
The function pointed toby pfn can change the value of MSG passed to it. If the function returns FALSE,the message will be passed to other hook functions and AutoCAD, provided thatthe other hooks don't block out the message.
If the function returnsTRUE, the message will not be passed to other hook functions or AutoCAD. Themessage is terminated.
- ObjectARX2010二次开发之 --- DXF转G代码(1)
- bmp 转 dxf
- dxf
- 读取DXF格式文件的C++代码
- 读取DXF格式文件的C++代码
- skyline二次开发示例代码
- dedecms二次开发常用代码
- ObjectArx2010+VC++2008配置
- ObjectARX2010画多线段
- AutoCAD ObjectArx2010安装
- CAD DXF格式转ESRI shapefile
- cad图层dwg,dxf转shp
- Dwg转dxf如何快速转换
- dwg文件转为dxf怎么转
- pdf转CAD设置dxf的格式
- dwg转dxf怎么操作方便
- isight5 二次开发之 Application (1) 之优化过程结果显示
- MapObjects二次开发之介绍
- SpringMVC之@RequestMapping注解
- 一维数组建模表示二维的棋盘状态
- Github学习之SwipeRevealLayout好用的侧滑库
- <html>文本格式化、引用、引用和术语定义
- SQL 数据库分页技术
- ObjectARX2010二次开发之 --- DXF转G代码(1)
- C++加密库botan混合编译和简单使用
- Spark 数据ETL
- 增强for循环对于“二维”数组进行循环的案例
- Thread的suspend和stop方法的一些问题
- codeforces#348-C. Little Artem and Matrix-模拟
- 算法基础 - 二叉查找树变成有序双向链表
- firebug安装及其使用 视频【原创】
- codeforces#348-D - Little Artem and Dance-规律-模拟