587,434 active members*
3,077 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > UG NX > Retrieve machining time macro
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2012
    Posts
    0

    Retrieve machining time macro

    Hello,

    I'm new to NX 7 and i need help with macros. I want to get the machining time of an operation with a macro and print it to a text. Is it possible to achieve this or does NX extract the machining time in a txt file in another way?

  2. #2
    Join Date
    Sep 2009
    Posts
    78
    I'm not sure if there is an easy way to do this with a macro or journal. Perhaps someone else could chime in about that.

    A simple but not very elegant method is to use a post called "program length and time" that should be a default post in your post directory. You can post individual operations or a group and display the results by checking "list output" at the bottom of the post processing dialog. In the display window you can then print the result or save it as a text file. Just so you know, this post behaves as a non-turbo mode post so large programs will take a bit of time to process.

    Using custom commands you can also output time info in a nc file as well as in shop docs. I haven't done any fancy custom commands so I just output the time at the end of the nc file with a basic custom command someone gave to me. I was thinking about customizing my shop docs more but when nx8 came out with a different format I decided to hold off and I have not yet had a chance to customize the new nx8 docs. The new doc format can be customized without Tcl-Tk knowledge as well as having the ability to output individual program groups whereas the old advanced html docs cannot.
    NX 10.0.3

  3. #3
    Join Date
    May 2012
    Posts
    0
    Thank you for your answer. I think i will follow the method you proposed to extract the time, to make a start. I hope in the future someone will post a macro in order to minimize the computational time.

  4. #4
    Join Date
    Sep 2009
    Posts
    78
    I forgot to mention in the ONT there is a column that displays the time for individual operations as well as for the groups. I don't know if there is a way to extract time from the column. Anyway, if you cannot see the column then all you have to do is right click on a column then go down to columns on the drop down that appears. There you can check/uncheck all the different types. If you want to change the order which they appear you can go down to the bottom of the drop down and click on configure. In there you can easily see the order and change it to whatever your preference is.

    Back to macros...I recommend making journals rather than macros. Journals tend to be more portable when upgrading from version to version whereas macros can "break" when upgrading.
    NX 10.0.3

  5. #5
    Join Date
    Feb 2006
    Posts
    146
    You can export the Operation Navigator to a spreadsheet or browser from the navigator pop up menu.
    Attached Thumbnails Attached Thumbnails Capture.JPG  
    John Joyce -NC Programming Supervisor
    Barnes Aerospace, Windsor CT

Similar Threads

  1. Custom Macro for Finding Cycle time
    By yaji63 in forum G-Code Programing
    Replies: 8
    Last Post: 02-08-2011, 04:58 AM
  2. Machining time
    By jrobson in forum MetalWork Discussion
    Replies: 6
    Last Post: 04-13-2008, 08:28 PM
  3. Machining Time
    By mmike76 in forum Uncategorised CAM Discussion
    Replies: 9
    Last Post: 04-09-2006, 02:07 PM
  4. cycle time macro program
    By mcash3000 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 03-29-2006, 07:33 PM
  5. Getting the machining time
    By HuFlungDung in forum OneCNC
    Replies: 8
    Last Post: 05-15-2003, 07:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •