Bounding Box (API bugs)

Hi all,

I tried to write a bounding box to measure the overall body size. But I found there are some error on bounding box function in PartDoc object or Body2 object.

Both of them can just measure a part or body which is align the Global Coordinate System. If you try to create a Cube , which is not align the global X axis , Y or Z, the bounding box will return an incorrect values.

Most of real part design will not use default (Top, Front, Right plane) plane, to start the design, some designer will create a rotated plane (let's say 30 degree) first, and then based on this plane to start the design. So, I found there is an incorrect return value in the bounding box function.

Can anybody help me?

Alan

Reply to
info.lowyeah
Loading thread data ...

I think you are talking about the API call that generates a bounding box. It has it's limitations and you have just found them.

  1. The bounding box is about 10% larger than the model/assembly it is bounding.
  2. It is aligned with the global coordinate system
  3. It sometimes will bound geometry that is not intended.

TOP

Reply to
TOP

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.