cancel
Showing results for 
Search instead for 
Did you mean: 

How to find a min and max point3D for a part with VB. NET

Creator
Creator

I am working on 3D part, however, I would like to treat it as 2D paper and would like to get a "ruler" and measure the distance from the min(y) point to the max(y) on Y-axis as shown in the picture below. This can be done by the screen distance measurement function from NX but I would like to do this automatically.  

 

The calculation can be done if I am able to determine min(Y) and max(Y) point3D coordinates and apply Abs2View/View2Abs. Any help is appreciated.

 

 

2017-05-31_20-54-47.png

6 REPLIES

Re: How to find a min and max point3D for a part with VB. NET

Check if "Bounding Box" can be helpful to detemine the Ymax,Ymin values.

I don't know how to do it in context of the programming but you can give a try for this.

 

Ganesh Kadole, QA Analyst (PLM), SQS
Testing: NX 10 | NX 11 | TCIN
TC 11.2 | TC Vis 11.3 | AWC 3.2

Re: How to find a min and max point3D for a part with VB. NET

Honored Contributor
Honored Contributor

I agree with @Ganesh_Kadole that the bounding box is probably the best solution to this. GTAC has sample code in the solution center.

 

The "measure extreme" command may also be useful, depending on your needs.

Re: How to find a min and max point3D for a part with VB. NET

Creator
Creator
Instead f "Select" the part, how can I pass the parts of an assembly to get the bounding boxes? I have a big assembly and I would like to do it more automatic way

Re: How to find a min and max point3D for a part with VB. NET

Creator
Creator
Thanks

Re: How to find a min and max point3D for a part with VB. NET

Honored Contributor
Honored Contributor

Search the GTAC solution center for "nxopen bounding box"; there are several examples available. Here is one.

Re: How to find a min and max point3D for a part with VB. NET

Esteemed Contributor
Esteemed Contributor

Just to clarify...

Do you wnat the max/min values of each solid in the context of the assembly, or the max/min values in the context of each piece part?

E.g. if you have a 1" dia sphere, located in the "piece part" with the center at (0,0,0)

You assemble that into an assembly, so the center is at (10,0,0)

 

For X, do you want min=-0.5 / max=0.5

or min=9.5 / max=10.5

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled