cancel
Showing results for 
Search instead for 
Did you mean: 

shopdoc m/c time

Solution Partner Builder Solution Partner Builder
Solution Partner Builder
Dear all

I am using NX10.0.2 mp3. I want to export shopdoc m/ctime (mom_ toolpath_time) in example 1h 20m 10s . Now it show in minute only.
How to do it ?


Thank you
8 REPLIES

Re: shopdoc m/c time

Esteemed Contributor
Esteemed Contributor

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}"
}
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: shopdoc m/c time

Solution Partner Builder Solution Partner Builder
Solution Partner Builder
Dear Stefan_pendl

thank you . But I do not know. how to use it ? and setting in shopdoc file .please advise to me.

thank you

Re: shopdoc m/c time

Esteemed Contributor
Esteemed Contributor

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]
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: shopdoc m/c time

Solution Partner Builder Solution Partner Builder
Solution Partner Builder
Dear Stefan_Pendl
What is the file to add procedure ?. and How to call it in excel file ?

THANK YOU

Re: shopdoc m/c time

Esteemed Contributor
Esteemed Contributor

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.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: shopdoc m/c time

Legend
Legend

 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"	

 

@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Re: shopdoc m/c time

Solution Partner Builder Solution Partner Builder
Solution Partner Builder
Dear mkn pioneer

thank you . And How to set it in excel program ? . Please advise to me?

Thank you

Re: shopdoc m/c time

Legend
Legend

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

 

@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Learn online





Solution Information