Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Error in macro

Status
Not open for further replies.

JimNX

New member
Joined
Sep 20, 2013
Messages
2
Location
US
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:

[tt]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[/tt]
 
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.
 
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,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top