本書系統(tǒng)全面地介紹了 Siemens NX 二次開發(fā)。作者根據(jù)自己多年的項目經(jīng)驗,精心編寫了書中內(nèi)容,注重實用性、易學性,講解邏輯符合讀者掌握 Siemens NX 二次開發(fā)的學習順序,從更高的維度探討了 Siemens NX 二次開發(fā)不為人知的一面。 全書共 19 章,主要內(nèi)容包括:編譯器選擇,幫助文檔使用,菜單與功能區(qū)設計,對話框設計,編程基礎;NXOpen 與草圖、建模、裝配、工程圖等的相關應用;各種疑難解決方案等。針對各個知識點,安排綜合實例幫助讀者快速入門與提高。 本書適合所有對 Siemens NX 二次開發(fā)感興趣的讀者。
唐康林,NX應用經(jīng)驗分享達人,10年家電產(chǎn)品設計經(jīng)驗,8年UG NX網(wǎng)絡教學經(jīng)驗,推出的UG NX8.5~10.0視頻教程,在論壇交流中廣受追捧,成為很多初學者的學習參考,應用經(jīng)驗與理論知識并重。
第 1 章 NX 二次開發(fā)基礎·····································································································1
1.1 開發(fā)方式··············································································································1
1.1.1 開發(fā)方式比較·······························································································2
1.1.2 開發(fā)方式推薦·······························································································2
1.2 開發(fā)流程··············································································································2
1.3 API 文檔與資料獲取 ·······························································································3
1.4 編譯器與簽名········································································································3
1.4.1 編譯器········································································································3
1.4.2 簽名···········································································································4
第 2 章 自定義菜單與功能區(qū)·································································································5
2.1 自定義菜單···········································································································5
2.1.1 MenuScript 語法····························································································6
2.1.2 MenuScript 常用語句······················································································7
2.2 自定義功能區(qū)········································································································8
2.2.1 Ribbon 工具條接口文件 ··················································································8
2.2.2 Ribbon 工具條接口關鍵字 ···············································································9
2.3 自定義菜單與功能區(qū)的加載 ···················································································.11
2.3.1 目錄結構··································································································.11
2.3.2 加載方式··································································································.12
2.4 自定義菜單和功能區(qū)實例 ······················································································.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 系統(tǒng)對話框窗口·························································································.24
3.3 重用內(nèi)部 UI Block ·······························································································.24
3.4 Block UI Styler 應用實例 ·······················································································.26
3.5 位圖簡介···········································································································.29
3.5.1 NX 系統(tǒng)位圖·····························································································.29
3.5.2 自定義位圖·······························································································.30
第 4 章 配置開發(fā)環(huán)境·······································································································.31
4.1 手工方式···········································································································.31
4.2 開發(fā)向導方式·····································································································.34
4.3 命令行方式········································································································.36
4.4 調(diào)試程序················