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: 

Selecting all top or bottom edges of a body or component

4 REPLIES 4
Reply
Message 1 of 5
matejsazama
334 Views, 4 Replies

Selecting all top or bottom edges of a body or component

Hello

I'm trying to write a script that prepares a model for 3d printing by chamfering the bottom edges, optionally filleting the top edges and maybe aplying offsets to the sides to get some clearance.

 

Now the issue is that I don't know if or how you can find a specific face or edges. Is there maybe some variable that always references the bottom side of the model or something similar?

 

Thank you for your help.

4 REPLIES 4
Message 2 of 5
BrianEkins
in reply to: matejsazama

There isn't a simple answer to your question.  Mostly it depends on what your models look like and what you define as "top" or "bottom".  If your models have some consistency in their shape, it's usually not too difficult to find the geometry you need.  For example, if you know you're always processing parts that can be any shape but will always be cut from a flat board, you can make assumptions that help in extracting the needed information.  However, if the input part can be anything, then it's much more difficult.  Here's a link to a paper I presented at Autodesk University a few years ago that discusses what makes up a part and the various tools you have in Fusion to examine it.

 

https://ekinssolutions.com/autodesk-university-2018/ 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 5
matejsazama
in reply to: BrianEkins

Would knowing the starting plane help?

For example, If I know that I always start the sketch on the xy plane and extrude into the + on z axis.

Message 4 of 5
BrianEkins
in reply to: matejsazama

That should help you a lot but still doesn't provide enough of a description to be able to know how to be able to find the "top" or "bottom" edges.  Below are some pictures of various models I grabbed from the Fusion 360 gallery.  I know some of these are nothing like your part, but others might have some similarities.  For any of these parts, what would you say are the top edges?  It all depends on your definition of "top edges".

 

Sample1.png

 

Sample2.png

 

sample3.png

 

Sample4.png

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 5 of 5
matejsazama
in reply to: matejsazama

Okay. And is there some way to determine top or side faces from other faces?

(Let's say you select the bottom and top faces and find side faces from that)

I'm sorry if this is annoying for you, I'm just starting out with this and the only references I'm going on are fusion sample scripts and a few youtube videos.

Thank you.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report