NX How to output the bounding block size from Expressions in NC output.

2022-02-25T06:50:49Z
NX for Manufacturing

Summary


Details

In NX CAM when a Bounding Block is defined the values of block in X ,Y &Z direction are created in Expressions. 
How to output these values in NC Program.

Sample: (Bounding Block Size: X_100 Y_100 Z_80)





Solution

The above requirement can be satisfied using a custom command in Postprocessor.
The steps below are implemented in Postbuilder, same logic can be used in Post Configurator.
You can modify the code as per your requirement.

1.Take a sample part file and define Workpiece details such as Part and Bounding Block. Once bounding Block is created, notice that 3 new expressions are created  which define the dimensions of Bounding Block

2. Create New Expressions x_len, y_len and Z_ht and give the name of corresponding expressions of Bounding Block in the Formula. (This step is optional and used here for better understanding)
Refer the below image


2. Open the Postprocessor in Postbuilder and create a custom command at appropriate location(Start of Program).

The MOM variable used to extract information from Expressions is

MOM_ask_ess_exp_value

Using this variable the values are extracted and then can be output using MOM_output_literal.

Refer below image:


3. The result of NC output using the above code is as follows:































Hardware/Software Configuration

Platform: INTL64
OS: windows
OS Version: 10_1909
Product: NX
Application: CAM
Version: V1980
Function: CUSTOM_POST

Ref: 002-8603117

KB Article ID# PL8603117

Contents

SummaryDetails

Associated Components

Manufacturing Post Builder