Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Where is postprocess file saved

Legend
Legend

So, I tried to create MENCMachining item from NX and made postprocessing after - and it was successfull - needed datasets appeared, as desired.

 

But I have another question - if I create MENCMachining item from NX only - are there some manufacturing licenses checking out? I didnt see any records in license server log

 

If MENCMachining is created via Teamcenter then manufacturing licenses check out

Re: Where is postprocess file saved

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

MENCMachining is just an item type with a dedicated usage, there is no license needed to create it.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
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 Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: Where is postprocess file saved

Master
Master

How do you configure the dataset?

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: Where is postprocess file saved

Legend
Legend

I continue to update this subject.

Today we also need to store  postprocess file in custom directory (not in %temp% dir) when we save part in TC after post processing.

The goal of that - it's too laborious to export many times *.ptp files from dataset named references(we perform additional CAM simulation with corresponding software that not  integrated with TC).

So in that case we need ability to set custom post output dir.

Is there some new env variable in NX10 that can resolve it? May something like UGII_CAM_OUTPUT_DIR etc

Re: Where is postprocess file saved

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You can always add a custom command to the "end of program" event.

You'll need code like (code below not tested, so you'll have to adapt as needed)

I have a bunch of additional checking (e.g. does the variable mom_output_file_full_name  include mom_sys_output_file_suffix, is the post being run for IS&V or starting the Sync manager, etc.)

 

global mom_output_file_full_name
MOM_close_output_file   $mom_output_file_full_name

set destin_folder "N:\Desired\Path\Here"

if {[catch {file copy -force  $mom_output_file_full_name "$destin_folder"} result]} {
    MOM_output_to_listing_device "Error copying $mom_output_file_full_name to \"$destin_folder\" "
    MOM_output_to_listing_device "   Message = $result"
}
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: Where is postprocess file saved

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

And if you want to get really fancy, you can ask the user if they want to do the copy.

For examples of using TK dialogs in the post, search the Solutions database, or look at this custom command:

%UGII_BASE_DIR%\POSTBUILD\pblib\custom_command\pb_cmd_ugwish_win64.tcl

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: Where is postprocess file saved

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Just thought of another thing...

You can do something in "start of program" to reset the file location, BUT:

If TC can't find the file in the new location (which I suspect will happen) it won't import it back into TC, so you will lose the "auto" save & config management of your NC code.

 

What I proposed above will make a COPY in the "other" location, so TC should be able to find the original in %TMP%\...\ and import it at save/close

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: Where is postprocess file saved

Legend
Legend

Thanks Ken_A for your solution. I agree - just COPY file is  enough, not the moving

 

Re: Where is postprocess file saved

Legend
Legend

I've found that cam_output.tcl can  be used to trigger post-output file creation.

I think may be need some custom code in this file to get and copy post output file to my own destination dir?

Re: Where is postprocess file saved

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Search the NX documentation for "LIBRARY_CAM_OUTPUT" or just "CAM_OUTPUT" to get more information about how this works.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
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 Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Learn online





Solution Information