turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Siemens PLM Community
- NX Manufacturing
- Discussion Forum - NX Manufacturing
- Shop Docs Total Time

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 10:08 AM

We are using the Opreation List to create some shop docs and the Time for each Tool Path comes in great. But we would like to put in the total time of the whole program. Does any one know what the variable is to do this? It would be the time at the top of the program in the operation Navigator. So it is being calculated in NX already.

Thanks for all the help

Steve

13 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 12:29 PM

there is no variable... to put the total time of the whole program, but you can get the toolpath time by operation (mom_toolpath_time) but maybe you know this.

many topics on this forum for this question... do a small search and you will certainly find what you are looking for...

@mkn

Production:NX11.0.2.7,VERICUT 7.3.3Development:Tcl/Tk, Gnuplot

www.deshors-tiremold.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 12:33 PM

Thanks for the reply.

I have the Toolpath time in there and that works great but I have been asked to put in the total time at the end.

I found this one but it doesn't seem to work.

mom_machine_time (The total machine time. Includes cutting, non-cutting and other additional times such as tool change time.)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 12:39 PM

i don't know mom_machine_time (maybe this variable works if you use a cnc postprocessor)

At the end it's more easy... , add mom_toolpath_time in a list at the end of program do a sum of this list.

@mkn

Production:NX11.0.2.7,VERICUT 7.3.3Development:Tcl/Tk, Gnuplot

www.deshors-tiremold.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 12:41 PM

How do you do a sum of the list?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 01:00 PM

proc sum {list} { set sum 0 foreach val $list { set sum [expr {$sum + $val}] } return $sum }

I hope this helps...

@mkn

Production:NX11.0.2.7,VERICUT 7.3.3Development:Tcl/Tk, Gnuplot

www.deshors-tiremold.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 01:04 PM

Where do you end up putting the information?

In what File? the .xlxs, .htm,

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 01:06 PM

tcl file...

@mkn

Production:NX11.0.2.7,VERICUT 7.3.3Development:Tcl/Tk, Gnuplot

www.deshors-tiremold.com

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 01:09 PM

Any where in particular in the shopdoc_excel.tcl file or fright at the end.

DO I have to put anything in the excel file to produce that then?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-31-2017 01:30 PM - edited 03-31-2017 01:33 PM

you don't know tcl and i don't know shopdoc based on excel

you can put this procedure anything in tcl file (shopdoc_excel.tcl ) put at the end for you...

I have never tested (Do not take offence if don't works...) i will do like that :

proc MOM_End_Part_Documentation { } { global list_of_toolpath_time # your proc sum set total_time [sum $list_of_toolpath_time] # put $total_time in a cell ... } proc sum {list} { set sum 0 foreach val $list { set sum [expr {$sum + $val}] } return $sum }

@mkn

Production:NX11.0.2.7,VERICUT 7.3.3Development:Tcl/Tk, Gnuplot

www.deshors-tiremold.com

**Learning Advantage** Learn NX CAM online at your own pace (Login required)

**Manufacturing Tutorials**

Already have NX CAM installed? Get hands-on with the in-software tutorials

**Product Support**

Contact Global Technical Access Center (GTAC)

Follow Siemens PLM Software

© 2017 Siemens Product Lifecycle Management Software Inc