Showing results for 
Search instead for 
Do you mean 
Reply

post process some special tools like T cutter and barrel cutter

[ Edited ]

I want to post process some special tools like T cutter and barrel cutter...i am not getting the output and the error shows up stating MOM_first_tool....error no 170002.

when i post a normal bull,ball and end mill it works absolutly fine...below is the post attached

please help

 

2 REPLIES

Re: post process some special tools like T cutter and barrel cutter

Problem is in your "custom_command_1": 

 

MOM_output_literal "#501=[Format1 $mom_tool_corner1_radius]"

 

For T-cutter, you should use mom_tool_lower_corner_radius and mom_tool_upper_corner_radius

It is good idea to use [info exists ...] command when you are not sure if variable will be avaliable or not.

Marek Pawlus, NCmatic

Production: NX 11.0.1
Development: C#, Tcl/Tk, CSE

Re: post process some special tools like T cutter and barrel cutter

I would use a separate varaible to fillin the tool corner radius, like my_tool_corner_radius.

set my_tool_corner_radius 0.0

  if { [info exists mom_tool_corner1_radius] }  {
	set my_tool_corner_radius $mom_tool_corner1_radius
  }
  if { [info exists mom_tool_lower_corner_radius] }  {
	set my_tool_corner_radius $mom_tool_lower_corner_radius
  }

# and many more depending on the tool type ...

MOM_output_literal "#501=[Format1 $my_tool_corner_radius]"
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: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Learn online





Solution Information