Cancel
Showing results for
Did you mean:

Get the parallel coordinate of a HOLE top center

Valued Contributor

Hi,

NX Open - JAVA

I have a Hole feature and I get its top center coordinate via the X/Y/Z_POSITION attributes.

Is there a way to get the parallel coordinate of the other side?

Thanks,

Tom.

2 REPLIES

Re: Get the parallel coordinate of a HOLE top center

Gears Esteemed Contributor

To get the opposite center you just need regular vector arithmetic.

Inside of the MKE there is a rule for machining holes from both sides, so you can use that formula.

```lwf_2.X_ORIENTATION_D = -mwf.X_ORIENTATION_D
lwf_2.Y_ORIENTATION_D = -mwf.Y_ORIENTATION_D
lwf_2.Z_ORIENTATION_D = -mwf.Z_ORIENTATION_D
lwf_2.X_ORIENTATION_L = -mwf.X_ORIENTATION_L
lwf_2.Y_ORIENTATION_L = -mwf.Y_ORIENTATION_L
lwf_2.Z_ORIENTATION_L = -mwf.Z_ORIENTATION_L
lwf_2.X_POSITION = mwf.X_POSITION + mwf.DEPTH*mwf.X_ORIENTATION_D
lwf_2.Y_POSITION = mwf.Y_POSITION + mwf.DEPTH*mwf.Y_ORIENTATION_D
lwf_2.Z_POSITION = mwf.Z_POSITION + mwf.DEPTH*mwf.Z_ORIENTATION_D```

I even think there is a detailed description in the MKE documentation about machining holes from both sides.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, 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
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: Get the parallel coordinate of a HOLE top center

Valued Contributor
Worked! thank you