Cancel
Showing results for
Did you mean:

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

Pioneer

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.

6 REPLIES

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

Siemens Phenom

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.

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

Gears Esteemed Contributor

I agree with @GaneshKadole 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

Pioneer
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

Pioneer
Thanks

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

Gears Esteemed 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

Gears 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 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled