Submitted by Achernar on Thu, 09/21/2017 - 04:10
Forums:
Hello, I have a question concerning NX Open. Is there a place where I can find a comprehensive, full list of commands for API? I want to create a journal which can read specific dimensions from a file, create a solid object using curves, surfaces trough these curves and then thickening the surfaces.
Previous version of the program I need was created in GRIP and I know that NX Open help has a full list of GRIP commands, including syntax and examples. I wanted to find such list for NX Open API but I haven't been successful.
If it changes anything I'd like to write this program in Python.
Thank you for your help!
re: API reference
NX 10 and later support Python as an automation language. The API reference guides for the various languages is included in the NX help files; however, the programming help is not installed by default. Re-run the help file install, making sure to choose the programming help files.
Alternately, if you have access to the Siemens community site, you can access the help files online. General programming help:
https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_api/
Python API reference:
https://docs.plm.automation.siemens.com/data_services/resources/nx/10/nx...
Transition from GRIP
There are reference guides that contain material on all available NX/Open and SNAP functions. For the .NET languages, these are CHM files. The NX/Open guide doesn't have many example programs, but the SNAP guide has hundreds.
If you know GRIP, and want to switch to something more modern, there's a manual called "SNAP and NX/Open for GRIP Lovers" or something like that. It lists the SNAP and NX/Open functions that correspond to GRIP commands.
However, all the docs I've mentioned are oriented towards Visual Basic. Mentally converting to C# is typically very easy; converting to Python is sometimes a bit harder (for me, anyway).