NX Unable to save post processor due to tcl errors in VNC commands

2021-10-06T23:27:30Z
NX for Manufacturing

Summary


Details

Unable to save a post processor from Post Builder after making changes because Post Builder found a tcl error in an older VNC command:



Solution

The error message names the variable "mom_sim_num_machine_axes" variable in the PB_CMD_vnc__preprocess_nc_block command.  A study of this custom command shows that this variable is used in an 'if' test, but was never declared.

At the top of the command, just under the introductory comments block, add a global declaration of this variable, alongside all the other declarations that already exist:

  global mom_sim_num_machine_axes

Attempting to save the post after this change revealed the same error for another variable in this custom command.  Add a similar declaration for the "mom_sim_mt_axis" variable, so the resulting additions to the declaration list looks like this:


Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V12.0.2
Function: POSTBUILDER

Ref: 002-8015976

KB Article ID# PL8015976

Contents

SummaryDetails

Associated Components

Manufacturing Post Builder