×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

BoundingBox vs Create Box, incorrect results from BoundingBox

BoundingBox vs Create Box, incorrect results from BoundingBox

BoundingBox vs Create Box, incorrect results from BoundingBox

(OP)
We have implemented and successfully been using the journal from:
thread561-389240: AskBoundingBox Function
to run BOM finished sizes for our components for about a year now. Works perfectly 95% of the time. However there are certain instances where it was failed us, and they are seemingly repeatable. We have found that chamfering edges on 'broken out' holes/cutouts on a relatively thin plate causes the plate thickness to be called out as thicker than actual model (eg. a 1.00" plate with a cutout with a chamfer will display as 1.014" and this will change as the chamfer size changes, and then be exact when the chamfer is suppressed). I'll attach a picture. This is not the only feature that has caused an error, but the most prevalent and known off the top of my head.

1) Is there a fix or known reason for this?

2) Why does this BoundingBox function work differently than the CreateBox function? When we manually do a Create Box then measure it, it is always exact???

Any ideas? Like I said 95% of the time it works great and has still solved many issues and saved us a lot of time, but never hurts to try to improve something to 100% right?


RE: BoundingBox vs Create Box, incorrect results from BoundingBox

From the API help files regarding the .AskBoundingBox function:

Quote:


Note that the box returned favors speed over accuracy. The returned box will contain the given entity and it will usually be close to the minimum bounding box but this is not guaranteed.

There is a more accurate version available, called .AskBoundingBoxExact, that you might want to investigate.

www.nxjournaling.com

RE: BoundingBox vs Create Box, incorrect results from BoundingBox

(OP)
Thanks for the quick info, I'll check into it.
As always thanks!

RE: BoundingBox vs Create Box, incorrect results from BoundingBox

Only to inform new readers , There is from, i think, NX10 a feature named "Bounding Body", which creates a enclosing block/ cylinder. - without running custom code. - Use command finder.

To compliment the thread, sometimes NX uses facets to calculate things ( Like internal volume around other solid bodies ), i would guess that the imprecise box you get with you code is calculated that way.
- and thereby the other .AskBoundingBoxExact function.


Regards, Tomas


RE: BoundingBox vs Create Box, incorrect results from BoundingBox

(OP)
Works like a champ, fixed all issues on known parts I've been able to test.

Thanks again

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources