Starting to Nx macros

Hello everyone.

I'm a NX user and i need to develope some macros to help me in my daily job in Nx.

So, i have some questions.

What language is more comon to find info.
What language is less version dependent.
Where i can find the functions. I also do some macros for catia, and in the instalation file there is a guide for macros.

I also see that's it possible to create macros with visual studio. In Catia I use a simillar version that exists with catia's instalation. But there is any info for it?

Thanks in advance

There are several ways to automate NX, one of which is known as a "macro". The NX macro recorder basically just records keyboard/mouse events and plays them back when you run the macro. Macros are good in certain scenarios, but if you need branching, looping, and complex logic, you will quickly run into the limitations of macros.

"Journaling" is a more recent addition to NX; it allows you to access the NX Application Programming Interface (API). Many computer languages are supported through journaling, your choice will be affected by factors such as the OS you use, what language you are already familiar with, if you have legacy code to support, etc etc.

If you are working on a Windows machine, Visual Basic (VB) is a popular choice (as of this writing, all of the example code on this site is in VB). Any .net language can be used when working on Windows as well as C++, Java, and Python (NX 10 and above). If you are working on a Linux version of NX, the .net languages are not (yet) available for use.

"What language is less version dependent?"
If you want your code to work on Windows or Linux, you should use Java or Python. C++ is another possibility, but it may require some tweaking to ensure platform independence.

Whenever a major NX version is released, you should check that your code still works as expected on the new version. The developers can and do change the underlying API, which affects all languages equally.

The NX programming help and API reference documentation can be found through the NX help system. The programming help is not installed by default, you may need to run the help installer again and choose to install the programming help files. After installing the help, also take a look at the SNAP getting started guide. SNAP is another interface layer that makes using the NX Open API easier. The SNAP documentation is worth looking through even if you do not have a SNAP license.

See the resources page for more helpful links and information.