×
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

How can I create a macro and assign it to a tool bar, NX6
2

How can I create a macro and assign it to a tool bar, NX6

How can I create a macro and assign it to a tool bar, NX6

(OP)
Hi guys:

I want to know how can I create a macro on NX6 and assign it to a customized tool bar. I am so new NX CAM user.

Thanks.

RE: How can I create a macro and assign it to a tool bar, NX6

2
You create Macros by going to...

Tools -> Macro -> Start Record...

...give the Macro a name and then perform the task you which to capture, after which you go to...

Tools -> Macro -> Stop Record

(note that we now recommend that you record Journals rather then Macros, if possible).

Once you have your Macro created and you've verified it's behavior, go to...

Tools -> Customize...

...and select the 'Commands' tab and then near the bottom of the 'Categories' column, select the 'New Button' option and then in the 'Commands' column, select and drag the 'New User Command' to the location in your toolbar of choice and drop it.  Now place your cursor over this new item and press MB3 and select the last item, 'Edit Action', set the Type to Macro (or Journal) and enter the path to your Macro (Journal) file.  You can also add whatever text that you wish to appear in the 'Tool Tip' for this new command.  Now again pressing MB3, you can assign a Name to the command as well as selecting artwork for the icon, is you wish.

Now just exit the Customize mode and you can now execute your Macro (Journal) by selecting your custom Icon, just like any other command.  Note that if you wish to save the changes made to the toolbar, you'll need to update your Role so that the changes are permanent.

Anyway, that should about do it.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

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

RE: How can I create a macro and assign it to a tool bar, NX6

John

Why do you recommend Journals over macros?  

Best regards

Simon NX4.0.4.2 MP10 - TCEng 9.1.3.6.c - (NX6.0.3.6 MP2 native)

www.jcb.com

Life shouldn't be measured by the number of breaths you take, but by the number of times when it's taken away...

RE: How can I create a macro and assign it to a tool bar, NX6

Journals will be less prone to being obsoleted as you upgrade from one version of NX to next whereas Macros will generally have to be recreated 100% of the time.  Also, Journals can form the basis for creating actual user programs by adding your own logic using something like Visual Basic.

While it is true that we will continue to support keystroke Macro's, our long term direction is to encourage the use of Journals for capturing interactive tasks and workflows.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

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

RE: How can I create a macro and assign it to a tool bar, NX6

(OP)
Hi John:

And how you can create a jounal??

Can you say me the steps, for createing one?

Thanks.

RE: How can I create a macro and assign it to a tool bar, NX6

Just go to...

Tools -> Journal -> Record...

...enter the name of the Journal and go from there, just as if you were creating a Macro.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

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

RE: How can I create a macro and assign it to a tool bar, NX6

(OP)
Thanks John.

Another point is, how can I link a journal to a customized tool_database.dat

For example tool_database_yasda.dat and tool_database_hermle.dat

I want to get this tool database with a customized tool bar on NX, and inside this tool bar insert the journals. I have configured the tool bar, but I don't know how can I link this tool bar to the databases, separately on NXCAM.

For example, I want to mill one piece with this tools, tool_database_yasda.dat and with other part I want to use other tools, this ones for exmaple tool_database_hermle.dat

Thanks.


 

RE: How can I create a macro and assign it to a tool bar, NX6

I'm not a CAM guy and have never modified any of the 'tool_database' files.  Sorry.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

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

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