Siemens NX二次開發
唐康林
- 出版商: 電子工業
- 出版日期: 2021-09-01
- 售價: $414
- 貴賓價: 9.5 折 $393
- 語言: 簡體中文
- 頁數: 272
- ISBN: 7121327570
- ISBN-13: 9787121327575
立即出貨 (庫存 < 4)
買這商品的人也買了...
-
$720$612 -
$850$723 -
$301機械製造工藝與裝備
-
$167UG NX12.0一體化項目教程
-
$234$222 -
$454中文版 UG NX 12.0從入門到精通(案例視頻版)
-
$294$279
相關主題
商品描述
本書系統全面地介紹了 Siemens NX 二次開發。作者根據自己多年的項目經驗,精心編寫了書中內容,註重實用性、易學性,講解邏輯符合讀者掌握 Siemens NX 二次開發的學習順序,從更高的維度探討了 Siemens NX 二次開發不為人知的一面。 全書共 19 章,主要內容包括:編譯器選擇,幫助文檔使用,菜單與功能區設計,對話框設計,編程基礎;NXOpen 與草圖、建模、裝配、工程圖等的相關應用;各種疑難解決方案等。針對各個知識點,安排綜合實例幫助讀者快速入門與提高。 本書適合所有對 Siemens NX 二次開發感興趣的讀者。
目錄大綱
第 1 章 NX 二次開發基礎·····································································································1
1.1 開發方式··············································································································1
1.1.1 開發方式比較·······························································································2
1.1.2 開發方式推薦·······························································································2
1.2 開發流程··············································································································2
1.3 API 文檔與資料獲取 ·······························································································3
1.4 編譯器與簽名········································································································3
1.4.1 編譯器········································································································3
1.4.2 簽名···········································································································4
第 2 章 自定義菜單與功能區·································································································5
2.1 自定義菜單···········································································································5
2.1.1 MenuScript 語法····························································································6
2.1.2 MenuScript 常用語句······················································································7
2.2 自定義功能區········································································································8
2.2.1 Ribbon 工具條接口文件 ··················································································8
2.2.2 Ribbon 工具條接口關鍵字 ···············································································9
2.3 自定義菜單與功能區的加載 ···················································································.11
2.3.1 目錄結構··································································································.11
2.3.2 加載方式··································································································.12
2.4 自定義菜單和功能區實例 ······················································································.12
第 3 章 自定義對話框·······································································································.20
3.1 對話框設計方式簡介····························································································.20
3.2 Block UI Styler 簡介 ·····························································································.20
3.2.1 Block UI Styler 界面····················································································.21
3.2.2 Block 列表································································································.22
3.2.3 系統對話框窗口·························································································.24
3.3 重用內部 UI Block ·······························································································.24
3.4 Block UI Styler 應用實例 ·······················································································.26
3.5 位圖簡介···········································································································.29
3.5.1 NX 系統位圖·····························································································.29
3.5.2 自定義位圖·······························································································.30
第 4 章 配置開發環境·······································································································.31
4.1 手工方式···········································································································.31
4.2 開發向導方式·····································································································.34
4.3 命令行方式········································································································.36
4.4 調試程序···········································································································.38
第5 章 編程基礎·············································································································.39
5.1 用戶出口···········································································································.39
5.1.1 ufusr( )·····································································································.39
5.1.2 ufsta( ) ·····································································································.39
5.1.3 其他出口··································································································.40
5.1.4 用戶出口實例····························································································.41
5.2 程序初始化與終止·······························································································.43
5.3 程序卸載方式·····································································································.43
5.4 程序運行模式·····································································································.44
5.4.1 交互模式··································································································.44
5.4.2 批處理模式·······························································································.44
5.4.3 遠程模式··································································································.45
5.4.4 批處理模式實例·························································································.45
5.5 NXOpen C ·········································································································.46
5.5.1 NXOpen C 命名約定 ···················································································.46
5.5.2 NXOpen C API 分類····················································································.47
5.5.3 NXOpen C 對象 ·························································································.50
5.5.4 NXOpen C 數據類型 ···················································································.51
5.5.5 NXOpen C API 聲明····················································································.52
5.5.6 UF_CALL 函數··························································································.53
5.5.7 動態內存··································································································.55
5.5.8 NXOpen C 對象轉換 ···················································································.56
5.6 NXOpen C++模板代碼 ··························································································.58
5.6.1 模板代碼框架····························································································.58
5.6.2 添加對話框回調·························································································.60
5.7 編程實例···········································································································.61
第 6 章 Journal 工具 ········································································································.66
6.1 Journal 工具的作用 ······························································································.66
6.2 使用 Journal 工具·································································································.66
6.3 理解 Journal 代碼·································································································.68
第 7 章 NXOpen C++對象·································································································.72
7.1 通用對象模型·····································································································.72
7.2 查詢 NXOpen C++對象 ·························································································.73
7.3 創建與編輯 Feature ······························································································.75
7.4 NXOpen C 與 C++對象轉換····················································································.76
第 8 章 部件與表達式操作·································································································.77
8.1 部件操作···········································································································.77
8.1.1 部件操作應用範圍······················································································.77
8.1.2 部件操作常用 API ······················································································.77
8.2 表達式操作········································································································.79
8.3 部件與表達式操作實例 ·························································································.80
9 章 草圖特徵操作·······································································································.85
9.1 草圖特徵操作應用範圍 ·························································································.85
9.2 草圖特徵操作常用 API ·························································································.85
9.3 草圖特徵創建流程·······························································································.86
9.4 坐標系及轉換·····································································································.88
9.5 草圖特徵操作實例·······························································································.90
第 10 章 實體特徵操作·····································································································.96
10.1 實體特徵操作應用範圍························································································.96
10.2 創建實體特徵常用 API ························································································.97
10.3 查詢實體特徵常用 API ························································································100
10.4 實體特徵操作實例······························································································104
第 11 章 自由曲面操作 ·····································································································111
11.1 自由曲面操作應用範圍························································································111
11.2 自由曲面操作常用 API ························································································111
11.3 自由曲面建模實例······························································································113
11.4 自由曲面操作綜合實例························································································117
第 12 章 屬性與對象變換操作 ····························································································124
12.1 屬性操作應用範圍······························································································124
12.2 屬性操作常用 API ······························································································124
12.3 對象變換操作應用範圍························································································127
12.4 對象變換操作常用 API ························································································127
12.5 對象變換操作綜合實例························································································128
第 13 章 數據文件操作·····································································································132
13.1 數據文件操作應用範圍························································································132
13.2 文本文件操作 ···································································································132
13.3 電子表格文件操作······························································································133
13.4 XML 文件操作··································································································135
第 14 章 自定義特徵········································································································137
14.1 自定義特徵應用範圍···························································································137
14.2 自定義特徵分類 ································································································137
14.3 Custom Feature ··································································································138
14.3.1 Custom Feature 的配置 ···············································································138
14.3.2 Custom Feature 的創建流程 ·········································································139
14.3.3 Custom Feature 實例 ··················································································141
14.4 UDF ···············································································································149
14.4.1 UDF Hooks 簡介·······················································································150
14.4.2 UDF Hooks 應用流程·················································································151
14.4.3 UDF Hooks 應用實例·················································································151
14.5 UDO···············································································································155
14.5.1 UDO 應用範圍·························································································155
14.5.2 UDO 基本介紹·························································································156
14.5.3 UDO 應用流程·························································································158
14.5.4 UDO 應用實例·························································································158
14.5.5 UDO 特徵應用實例···················································································162
第 15 章 裝配操作···········································································································170
15.1 裝配操作應用範圍······························································································170
15.2 裝配操作常用術語······························································································170
15.3 裝配操作常用 API ······························································································173
15.4 自動裝配解決方案······························································································173
15.5 裝配操作實例 ···································································································175
第 16 章 工程圖操作········································································································181
16.1 工程圖操作應用範圍···························································································181
16.2 工程圖操作常用 API ···························································································181
16.2.1 圖紙頁與視圖操作 ····················································································182
16.2.2 中心線與註釋操作 ····················································································184
16.2.3 尺寸標註 ································································································187
16.3 自動創建工程圖實例···························································································188
16.4 合並應用程序 ···································································································193
第 17 章 預覽操作···········································································································195
17.1 預覽操作應用範圍······························································································195
17.2 預覽方式分類 ···································································································195
17.3 預覽操作實現原理······························································································197
17.4 曲線預覽實例 ···································································································197
17.5 體預覽實例 ······································································································201
第 18 章 混合開發···········································································································209
18.1 NXOpen C 與 GRIP·····························································································209
18.2 NXOpen C/C++與 KF ··························································································213
18.3 NXOpen 與內部 API ···························································································216
18.4 NXOpen 與 Parasolid ···························································································221
第 19 章 疑難專題···········································································································224
19.1 查找相同體 ······································································································224
19.1.1 相同體定義 ·····························································································224
19.1.2 查找相同體解決方案 ·················································································225
19.1.3 查找相同體編碼實現 ·················································································226
19.1.4 查找相同體效率對比 ·················································································230
19.2 移除重復對象 ···································································································231
19.2.1 移除重復對象應用範圍 ··············································································231
19.2.2 移除重復對象解決方案 ··············································································231
19.2.3 移除重復對象編碼實現 ··············································································233
19.2.4 遺留問題與解決方案 ·················································································240
19.3 跨版本應用程序實現···························································································241
19.3.1 跨版本應用程序解決方案 ···········································································241
19.3.2 跨版本應用程序編碼實現 ···········································································241
19.4 製作語言包 ······································································································244
19.4.1 舊方法製作語言包 ····················································································245
19.4.2 新方法製作語言包 ····················································································246
19.5 光標動態捕捉 ···································································································247
19.5.1 光標動態捕捉解決方案 ··············································································248
19.5.2 光標動態捕捉編碼實現 ··············································································249
19.6 截圖操作 ·········································································································254
19.6.1 截圖操作解決方案 ····················································································254
19.6.2 截圖操作編碼實現 ····················································································254
19.7 隱藏 Block UI Reset 按鈕····················································································257
19.8 無部件模式使用 Block UI·····················································································258
19.9 設置 Block UI 不執行 Undo 操作············································································260
19.10 獲取應用程序安裝路徑 ······················································································261