Cancel
Showing results for 
Search instead for 
Did you mean: 

mom_information.out

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hello ,

 

during postprocessing I get som error.

Log file:

 

*** IKS has been initialized ***
***TCL_ERROR***: Event Handler: n:\Template_parts\PRAMET_postprocessors\MCV_1270I\Pramet_MCV1270_3os.tcl, Event: MOM_end_of_program, Error: couldn't open "./mom_information.out": permission denied
    while executing
"open "./mom_information.out" a"
    (procedure "MOM__util_print" line 1)
    invoked from within
"MOM__util_print "***** A TCL Error Has Occurred *****""
    (procedure "MOM_on_event_error" line 1)
    invoked from within

 

It means that customer has not permission to write in that directory?

It is possible to avoid creating of this file?

Or is there any other solution for this?

 

additional question:

What is this file for? Only for writing violations and errors?

 

Thank you

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #
13 REPLIES 13

Re: mom_information.out

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I'm not 100% sure, but I believe mom_information.out is created when...

1) You activate the post "review tool" (in the post itself, or in the "post process" dialog)

2) In the post you turn on the setting "Output warning messages"

3) (I think) In some cases when errors occur (possibly not when posting, but at other times)

 

I would approach this by figuring out what folder it is trying to write to.

If you are in TC, it should be somewhere in the %TMP% tree

But sometimes I find these files in the ...\Mach\Resource\... tree

I would look for the proc MOM__util_print and try adidng a "MOM_output_to_listing_device" message to say what folder the "./" folder is (you might need to use some tcl "file" commands to get the actual folder instead of ".")

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: mom_information.out

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

thanks,

I have warning messages and review turned off.

but if there is some problem it generates this file.

 

When you output literal $aaa and  aaa is not set, it creates mom_warning.out.

(and review tool, messages are turned off)

In directory where the nc code is outputed.

 

with:

 

***** A TCL Error Has Occurred *****
Event Handler: C:\Users\juraj.balak\Desktop\new_post.tcl
Event: MOM_start_of_path
Error Info: can't read "aaa": no such variable
    while executing
"MOM_output_literal "$aaa""
    (procedure "PB_CMD_start_of_operation_force_addresses" line 7)
    invoked from within
"PB_CMD_start_of_operation_force_addresses"
    (procedure "MOM_start_of_path" line 19)
    invoked from within
"MOM_start_of_path"
Error Code: NONE

 

 

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: mom_information.out

Master
Master

Is the variable aaa coming from a ude? If so it is probably not available at that time. Or you need to initialize the variable somewhere before you need it.

Shags72 Mfg. Eng.
Windows 10 Pro 64bit
NX 11.0.2.7 MP2 Teamcenter 11
Dell M7720 i7-6820HQ 16GB RAM,
NVIDIA Quadro P3000

Re: mom_information.out

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you were intentionally doing something to get an error, that's OK.

Note if a variable may or may not exist, you can have tcl check before you try to use it:

global ken_test
if {[info exists ken_test]} {
    # you can use variable ken_test
}

 

If the variable is used for a word in a block, you can set the "Optional" key, so the post won't die if it doesn't exist.

 

Back to mom_information.out

Someone from Siemens would have to provde the "definitive" answer when & where this file is created.

The "./" folder *MAY* be the "start in" folder from the shortcut used to start NX.  You might try changing this to something else (in the shortcut, or if run thru a .BAT file, try "CD" to a different place)

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: mom_information.out

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

@shags72I outputed "aaa" because I want to make an error = to prove that mom_warning.out is generated when problems have occured. And even when warning messages and review tool is not turned on.

This is not a problem.

I described problem in first post.

 

@Ken_A

If I am not able to not generate this file, customer should use other location of nc file. Then it is working.

But this not always possible in companies.

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: mom_information.out

Phenom
Phenom
Juray,
Have you access to this procedure MOM__util_print ?
Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Re: mom_information.out

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hello,

 

I was looking in postproc tcl file and I found only calling or renaming this procedure. But not something to remove, comment.

Maybe somewhere in nx files is something.

Or I am thinking to overide this process somehow...

Dont know how...

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: mom_information.out

Phenom
Phenom
In tcl ( it's maybe a little different with Nx) you can overide a proc by a same proc
Example below :
proc MOM__util_print { } {
puts "do something"
}
proc MOM__util_print { } {
puts "re do something !!"
}
% MOM__util_print

If you call proc
It will return > re do something !!

I find this link ( russian language maybe...)
With MOM__util_print
http://www.unpp.narod.ru/mom_fun1.html
Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Re: mom_information.out

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I put on very first event section (start of program) of postprocessor command with uplevel MOM__util_print with "nothing" and it stops creating mom_warning.out when error is occured.

Maybe this is the solution(?)

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information