Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WIDTH and LENGTH of a Face

1 REPLY 1
Reply
Message 1 of 2
ritacashia
533 Views, 1 Reply

WIDTH and LENGTH of a Face

Hey there!

I'm developing an Add-in to use with Shoe sole molds, and I got to a point that I need to use code to find the width and length of a face (outlined in red - I don't have the CAD model yet, so i used this image to exemplify), so that I can use those values to do some calculations. Can you PLEASE help me? I got stucked here and I need to finish my thesis ahahahahpl24082542-aluminium_shoe_sole_mold_pu_safety_shoe_making_mold_long_service_time (2).jpg

 

1 REPLY 1
Message 2 of 2
JesusFreke
in reply to: ritacashia

You can use BRepFace.boundingBox to get a bounding box aligned with the world axis.

 

Or, if you need a bounding box with a different alignment, you can use MeasureManager.getOrientedBoundingBox(), which accepts 2 vectors specifying the length and width vectors to use.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report