×
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

Error in macro

Error in macro

Error in macro

(OP)
Hi,

I am trying to fix an error that I am getting with an NX 7.5.5.4 macro. Apparently it worked previously but started getting this error when we upgraded some time ago. It is supposed to display some input windows. Thanks for your help.


I get the following error:
Error at line 23: Playback Terminated
At start of Dialog
Expecting: DIALOG_BEGIN “Dependencies”
Found: MENU, 0, UG_APP_QUALITY_CONTROL UG_GATEWAY_MAIN_MENUBAR ! <MB/Toolbar>


This is the macro:

NX 7.5.3.3
Macro File:C:\ load.macro
Macro Version 7.50
Macro List Language and Codeset: english 17
Created by ae5933t on Thu May 12 09:11:54 2005
Part Name Display Style: $FILENAME
Selection Parameters 1 2 0.262251 1
Display Parameters 1.000000 11.363326 6.705672 -1.000000 -0.590115 1.000000 0.590115
*****************
RESET
MENU, 0, UG_FILE_OPEN UG_GATEWAY_MAIN_MENUBAR !
FILE_DIALOG_BEGIN 0, ! filebox with tools_data
FILE_DIALOG_UPDATE 2
FOCUS CHANGE IN 1
FOCUS CHANGE OUT 1
FOCUS CHANGE IN 1
FILE_DIALOG_END
FILE_BOX -2, C:\nx4_v1.0.prt C:\*.prt 0 ! Open Part File
SET_VALUE: 0 ! FSB item
SET_VALUE: 1 ! FSB item
SET_VALUE: 0 ! FSB item
WINDOW RESIZE 1.000000 8.765994 7.981668 -1.000000 -0.910526 1.000000 0.910526
MENU, 0, UG_APP_QUALITY_CONTROL UG_GATEWAY_MAIN_MENUBAR ! <MB/Toolbar>
DIALOG_BEGIN "Tecnomatix Quality Menu" 0 ! DA2
WINDOW RESIZE 1.000000 8.765994 7.372662 -1.000000 -0.841053 1.000000 0.841053
EVENT ACTIVATE 0 0, 5, 0, 0, 0! Menu Item 5
DIALOG_END 1, -1 ! Tecnomatix Quality Menu: mtEndEventLoop
FOCUS CHANGE IN 1
DIALOG_BEGIN "Tecnomatix Quality Menu" 0 ! DA2
EVENT ACTIVATE 0 0, 3, 0, 0, 0! Menu Item 3
DIALOG_END 1, -1 ! Tecnomatix Quality Menu: mtEndEventLoop
FOCUS CHANGE IN 1
DIALOG_BEGIN "Tecnomatix Quality Menu" 0 ! DA2
EVENT ACTIVATE 0 0, 5, 0, 0, 0! Menu Item 5
DIALOG_END 1, -1 ! Tecnomatix Quality Menu: mtEndEventLoop
FOCUS CHANGE IN 1
DIALOG_BEGIN "Enter VCL command" 0 ! DA2
BEG_ITEM 1 (1 LIST 0) = 0 ! List (Items selected)
BEG_ITEM 2 (1 WIDE 0) = "" ! Enter VCL command to execute
FOCUS CHANGE IN 1

RE: Error in macro

Macros created in one version of NX will almost never work in a newer version. Macros are not upward compatible, nor is there any attempt made to make them so. If you're looking to capture frequently used interactive sequences and you would like them to be upward compatible, then you really need to use Journaling and NOT Macros.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: Error in macro

(OP)
Thanks!

The macro actually does something else. At the top it loads a file and then it goes down through the menus and leaves the person deep in a sub-menu. The error is between the file loading and the menu traversing. Does Journaling do those 2 trhings (loading a file and leaving the user at a sub-menu)?

Thanks again,

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