日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

ObjectARX2010二次开发之 --- DXF转G代码(1)

發布時間:2023/12/14 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ObjectARX2010二次开发之 --- DXF转G代码(1) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

近期計劃用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)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。