Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX1969 - Where does the Macro Record pull from?

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
949
We have a problem where either our NX is causing an error when it records a USER ENTRY in Macro, or it is not playing them back correctly.

When recording a macro, where does NX pull from to record the macro? When it plays a macro back, is it playing it from the same file as it records with or a different one?

Just to be clear. It records normal macros fine. It just seems to falter when recording a macro with a user entry. It seems to record it, but when you play it back, it always errors out at the user entry line in the code. We want to be sure we have the correct files after we updated to this version.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Replies continue below

Recommended for you

I am not aware that the macro function should be changed, but I have not tried it in this version either.
The Macro function is a "no further development" and have been that for many years.
It should only record and store/play one single macro file.

Regards,
Tomas

Never try to teach a pig to sing. I wastes your time and it annoys the pig.:)
 
Why is it that every time we get a new version of NX, a bunch of our macros stop working and I have to re-record them? IF no changes are made, I would think they would still work.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
After I sent that, I realized it could be because the functions the macro recorded may have moved or have been changed themselves.

However, the simple fact is, right now when I record a macro with a user entry, it will error out on pay back. If there is a file that the macro function pulls from, I am hoping that we can replace that one file with the old one and it would work again. Clearly something isnt working as it is.


Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Unlike a journal, a macro records the actual keystrokes, so if even a single option or setting is changed, the macro is unable to play it back. However, a journal records what function you selected to execute so as long as that function remains valid, the journal will run. Granted, there are some exceptions, but not nearly as many as there are when running old macros.

John R. Baker, P.E. (ret)
EX-'Product Evangelist'
Irvine, CA
Siemens PLM:
UG/NX Museum:

The secret of life is not finding someone to live with
It's finding someone you can't live without
 
That answers why they break with new versions, but not why it would not replay any macro with a user entry.

Currently I can create a simple block. Then record a macro where I change its color from gray to blue. I can then do an undo and play the macro and it will work. It changes the color of it to blue again. However, if during recording, I should use either "USER ENTRY" or "USER ENTRY WITH INSTRUCTIONS" when I play it back, it gives me an error at line such and such. It is always the line with this piece of code...

USER_ENTRY_PROMPT -2 2 1

I dont know if the error is due to a glitch in the playback or in the recording of the macro. I have sought for someone with the same version to record the same macro, hoping that if it works for them in playback, that I could see a difference in the code and find a way to manually fix it. I cant seem to find anyone to do that.

I am hoping there is a particular file that NX uses to do its macro recording and playback. If I can figure out what that file is, I would try to just replace it with the same file from the old version of NX we had before. See if that fixes my problem.

The problem is it is General Motors who gives us the NX version to load to our computers. Logically I would think they would give the same thing to all of the companies doing their work. But to my knowledge, it seems we are the only ones with this problem. So I am guessing that maybe that file did not get replaced with the new one. Maybe NX is still recording with the old file and errors out when trying to play it back? I dont know. But I cannot think of anything else for why it would error out for us and not others and the only way I can logically figure it out is if I know what files are used for macro recording and playback, so I have a place to start.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
I have been trying to figure this out for a couple months now and nobody seems to have any ideas what I can do to fix it. So I am just grasping at ideas that seem to make logical sense to me. Logically, it seems there would be a program file that does the macro recording and a file that does the playback. Maybe they are the same file. I dont know. But that is the only thing that makes sense to my very limited knowledge of this.

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor