×
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

.tbr files

.tbr files

.tbr files

(OP)
IS THE A WAY TO RUN MACRO'S USING THE .TBR FILES.
IF SO WHAT IS THE FORMAT.

RE: .tbr files

It is very simple to call a macro file, or a grip file from a modified TBR file. Here is the format for Macros:

BUTTON UG_EDIT_ATTRIBUTES
LABEL Edit Attributes
BITMAP $UGII_CUSTOM_DIR\tool_bars\bitmaps\attributes.bmp
ACTION $UGII_CUSTOM_DIR\tool_bars\macros\edit_attributes.macro

and for Grip files:

BUTTON UG_CREATE_ATTRIBUTES
LABEL CREATE ATTRIBUTES
BITMAP $UGII_CUSTOM_DIR\tool_bars\bitmaps\attributes.bmp
ACTION $UGII_CUSTOM_DIR\tool_bars\griplib\set_attributes.grx

-Derek
DL Engineering Services

specializing in CAD Design Consultation Services
www.dl-engineering.com

RE: .tbr files

(OP)
thanks, works great

RE: .tbr files

Is there an way to run a macro file from the .men file?

RE: .tbr files

Should be easy...
Use the modification listed above in the men file you want to add the action to....

-Derek
DL Engineering Services

specializing in CAD Design Consultation Services
www.dl-engineering.com

RE: .tbr files

I am able to run a macro from a .tbr but when I try to run a macro from a .men file I get the following errors:

File Execution Failed
-or-
None of the actions specified for this button were registered.

Is there an exact way I need to call for the macro?  I have tried several different ways.  I am on NX2

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