Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting in macros

Status
Not open for further replies.

TiagoFigueiredo

Industrial
May 22, 2013
502
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
 
Replies continue below

Recommended for you

In nx macro is simply recording your interactive
work with nx.
 
I think Tiago asks on how to do some application programming. In many other systems this is called "macro programs".
In NX a "macro" is that : - you can record a number of button pushes, then this macro will repeat these button pushes. Not flexible nor friendly to differences in user interface.
( The Macro function is an aged feature from the days before the graphical user interfaces entered the scene. - Before Unigraphics Version 10. 1980s.)

A more modern approach is the "Journal".
- Cowski , can you add in here ?

Regards,
Tomas
 
I think you are referring to journals. Journals record the changes to the file, whereas macros only record keystrokes.
Start by recording a journal, and playing it back. Then edit it and take a look.
The default language is vb, which is probably the easiest for a non-programmer.

Mark Rief
NX CAM Customer Success
Siemens PLM Software
 
I'd advise you to stay away from macros. They are difficult to maintain because they often don't migrate nicely from one NX release to the next.

To automate your work, I would recommend NX "journals". A journal is just a program, written in your favorite language, that calls NX functions to do useful things. VB is the most popular language, but you can also write in any .NET language (C#, F#, IronPython, etc.) or Java or Python or C/C++. If you're beginner, I would recommend VB.

For an introduction to programming with NX, look at the "Getting Started with SNAP" guide that ships with NX.

 
Hello,

many thanks with that. I will star a look around with journals.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor