×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Starting in macros

Starting in macros

Starting in macros

(OP)
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

RE: Starting in macros

In nx macro is simply recording your interactive
work with nx.

RE: Starting in macros

and is depended on nx version

RE: Starting in macros

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

RE: Starting in macros

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

RE: Starting in macros

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.

RE: Starting in macros

(OP)
Hello,

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources