NX2206 <<
Previous Next >> Mechatronics
NXOpen
NX Open is an Application Programming Interface (API) that lets you write programs to customize or extend NX. The benefit is that applications created this way can often speed up repetitive tasks, and capture important design process knowledge.
Python 範例: UGOPEN\SampleNXOpenApplications\Python
Introduction_to_NXOpen.pdf from https://github.com/derda48/NXOpen
NXOpen Programmer's Guide (NX12)
NXOpen for Python Reference Guide (NX12
NXOpen_spur_gear.c
Get Started with NXOpen.pdf (2019)
NX10: https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx_api/en_US/custom/nxopen_python_ref/index.html
NX12: https://docs.plm.automation.siemens.com/data_services/resources/nx/12/nx_api/custom/en_US/nxopen_python_ref/index.html
SNAP_Getting_Started_nx1872.pdf
A Component (組件) is an occurrence (事件) whose prototype (原型) is a NXOpen.Part.
Component 為電腦事件, 其原型為零件檔案.
下圖的黃色部分即為組件 (Components), 也就是所謂的零件事件. 透過組件間的樹狀結構, 就可以得知組立件中的零件組成, 而無需開啟零件檔案.
每一個組立件中都有一個根組件 (RootComponent), 也就是該組立件的樹狀結構源頭. 若一個 prt 檔案中並無根組件, 代表其並非組立件.
因為每一個組件都應該帶有連結到其子組件、父組件與其零件檔案的連結. 而其中的零件檔案就稱為該組件的原型. 至於根組件並非"真實的"組件, 因為其原型連結有特殊意義, 也就是根組件的原型連結會"連回"其零件檔案本身.
NXOpen Python 程式範例:
nxopen_ex1.py
nxopen_ex2.py
nxopen_ex3.py
Convert VB to Python:
https://community.sw.siemens.com/s/question/0D54O000061xRnYSAU/convert-vb-to-python
Referene:
NX 各版本技術手冊
https://docs.plm.automation.siemens.com/tdoc/nx/1899/nx_help
NX1980\NXBIN\managed\exceladdin_x64.dll
ugii_env_ug.dat.txt
UGII_PYTHONPATH
UGII_PYTHON_LIBRARY_DIR
https://ntnuopen.ntnu.no/ntnu-xmlui/handle/11250/2656770 (Design of a KBE system for automatic weld path definition in CAD
NX2206 <<
Previous Next >> Mechatronics