Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to find the actioned Postprocess name and location within a CAM session

PLM World Member Builder PLM World Member Builder
PLM World Member Builder
Mark Hi,
With your guidance, I think I can see the light at the end of the tunnel. One last question if I place a procedure into
ugpost_base_custom.tcl it will need to be automatically called somehow. The only way I know of doing this is to override an existing procedure from ugpost_base.tcl which isn't itself being overridden in the postbuilder posts.

One such procedure is CLOSE_files(). This would require me to copy the contents of this procedure and place it into ugpost_base_custom.tcl and add my additionally stuff.

Unless I have to, I don't really want to override your code. Are you aware of any other MOM event or other procedure which are being called, but not used by Postprocessing process, obvioulsy without the need to add my own to the PP.


Thanks again.

Re: How to find the actioned Postprocess name and location within a CAM session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Don't place the code into any procedure and it will be executed at once.

 

You don't want to have any procedure executed, you want to have the post stop immediately and notify the user of inappropriate post usage.

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: How to find the actioned Postprocess name and location within a CAM session

PLM World Member Builder PLM World Member Builder
PLM World Member Builder

Thanks i didn't realise code could exist outsize of a procedure

Re: How to find the actioned Postprocess name and location within a CAM session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you check out the Tcl scripts shipping with NX, you will find code outside of procedures, which is mostly sourcing other scripts.

 

I would suggest you take some time and read a general tutorial about Tcl/Tk available on the net Smiley Wink

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: How to find the actioned Postprocess name and location within a CAM session

PLM World Member Builder PLM World Member Builder
PLM World Member Builder

Guys,

I'm following up with the suggestion in this post to use an include file to the ugpost_base.tcl file. At the moment I am using pd_base.tcl because we are still on NX75 and it isn't working as expected.

 

It appears that NX variables aren't initialised at this stage, do you have any documentation or idea on how I can get around this?

 

as away thank for your support

 

global mom_attr_PART_DB_OWNER_NAME

MOM_output_literal "POST AUDIT TEST"

MOM_output_literal "$mom_attr_PART_DB_OWNER_NAME"

 

 error.png

Re: How to find the actioned Postprocess name and location within a CAM session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I don't think you have access to part specific variables before the start of program event handler procedure.

 

You can usually only check for things that are directly related to MOM (manufacturing output manager).

 

Use the review tool or Kens' moog_global procedure to check what is abailable at that stage.

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: How to find the actioned Postprocess name and location within a CAM session

PLM World Member Builder PLM World Member Builder
PLM World Member Builder

do you know where i can get hold of Kens' moog_global procedure 

Re: How to find the actioned Postprocess name and location within a CAM session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Searching the GTAC Customer Forums Archive should reveal 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: How to find the actioned Postprocess name and location within a CAM session

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

although it is called "moog_show_globals" - search may find that better ;-)

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


Learn online





Solution Information