cancel
Showing results for 
Search instead for 
Did you mean: 

Get the parallel coordinate of a HOLE top center

Valued Contributor
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?

 

2017_04_02_16_03_38_NX_11_Manufacturing_test2.prt_Modified_.png

 

Thanks,

Tom.

2 REPLIES

Re: Get the parallel coordinate of a HOLE top center

Esteemed Contributor
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.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

Re: Get the parallel coordinate of a HOLE top center

Valued Contributor
Valued Contributor
Worked! thank you Smiley Happy