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: 

Show the Length, Width, and Height of a Bounding Box

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
1499 Views, 2 Replies

Show the Length, Width, and Height of a Bounding Box

Hello everyone,

 

I am trying to create a message box that displays the length, width, and height of the bounding box of an object using the Fusion 360 API. I have tried but I cannot seem to access these properties. I can access the area and volume properties easily but I can't find the L, W, and H. Does anyone have any suggestions as to how I can do this?

 

Much appreciated,

Zach

2 REPLIES 2
Message 2 of 3
MichaelT_123
in reply to: Anonymous

L  = component.boundingBox.maxPoint.x - component.boundingBox.minPoint.x

W = component.boundingBox.maxPoint.y - component.boundingBox.minPoint.y

H  = component.boundingBox.maxPoint.z - component.boundingBox.minPoint.z

 

 

 
boundingBox

Component

MichaelT
Message 3 of 3
Anonymous
in reply to: MichaelT_123

Thank you MichaelT_123! That worked perfectly.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report