11-16-2015 04:31 AM
11-16-2015 09:27 AM
I created my own procedure for this.
#============================================================================= proc JH_make_time_string { seconds } { #============================================================================= set hours [expr int(${seconds} / 3600)] set seconds [expr ${seconds} - (${hours} * 3600)] set minutes [expr int(${seconds} / 60)] set seconds [expr ${seconds} - (${minutes} * 60)] set seconds [expr int(${seconds})] set time_string [format "%0d:%02d:%02d" ${hours} ${minutes} ${seconds}] return "${time_string}" }
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
11-16-2015 09:35 AM
11-16-2015 09:55 AM
You call it like any other procedure in Tcl.
You just need to add it to your Tcl script.
I call it in the following way:
JH_make_time_string [expr ${mom_toolpath_cutting_time} * 60]
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
11-16-2015 10:40 AM
11-16-2015 11:11 AM
I don't think this is possible to use with the Shop documentation that is based on Excel.
I don't use the Excel-based shop documentation, because it is too restrictive for my purpose.
Sorry, I cannot help here because I don't have any experience with the Excel-based shop documentation.
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
11-16-2015 12:25 PM
hello ,
MOM_output_literal "[expr int($mom_toolpath_time / 60)]h \ [expr int (((int($mom_toolpath_time / 60)-($mom_toolpath_time / 60))*60)*-1)]m \ [expr int (((int((int($mom_toolpath_time / 60)-($mom_toolpath_time / 60))*60))-(((int($mom_toolpath_time / 60)-($mom_toolpath_time / 60))*60)))*60)]s"
Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com
11-16-2015 09:03 PM
11-17-2015 03:28 AM
ok , if you use excel_templates , i don't know, maybe try to modify the excel cell . By default ,the cell is "standard" , turn to "hour".
Your cell =} MB3 =} cell format =} category=} hour
Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com