Skip to main content
Jun 19, 2017 7:45 AM UTC
Question

How to extract model size(width, length, height) to parameter?

Hi evertyone.

 

I have a quetion.

My question is how to extract model sizeI(W,L,H) to parameter.

I can see overral model length through model size function in investigate tap.

But I want to know W,H,L dimension of model(Part or Assembly)

How to do?

Please let me know good technique.

 

Thanks~~~~

3 replies

2-Explorer
Jun 19, 2017 8:40 AM UTC

Please refer to technical article https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS29792 for detail

yseoAuthor
Jun 19, 2017 11:03 PM UTC

Is there another method not to use model check?

Jun 20, 2017 12:25 AM UTC

Have a look: https://www.ptcusercommunity.com/search.jspa?q=model+size+parameter

The Ideas seem limited, they should be functions:

Solid_Max_X(csysname),

Solid_Min_X(csysname),

Solid_Max_Y(csysname),

...

Geom_Max_X(csysname),

...

Datum_Max_X(csysname),

...

Where Solid applies to solids, Geom applies to solids or surfaces, and Datum applies to curves and points.

It may be worthwhile to have functions for Cylindrical coordinates or for Spherical coordinates.

Extra work may see value in generating L, H, and W values that are unaligned with any coordinate system and the related transform from some given coordinate system, but this is not a trivial thing to do because the basis is not singular - should the volume be the smallest volume? Should it minimize W, then H, before determining L? Should it maximize L first and then H, then W?