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: 

Offset body face with script ?

6 REPLIES 6
Reply
Message 1 of 7
michelmarroche
192 Views, 6 Replies

Offset body face with script ?

Hello, I have a question, can you make an offset to the face of a body with a script?

 

Thank you

6 REPLIES 6
Message 2 of 7
kandennti
in reply to: michelmarroche
Message 3 of 7
michelmarroche
in reply to: kandennti

Hi @kandennti, I've seen that sample, but it's not what I'm looking for.. I need to make an offset of an existing body object, just like I would do from the mods menu with the offset face option, or with press/pull new offset ..

I have performed other operations from scripts such as extrude, shell, etc., but I cannot perform an offset to the same body

 

Captura de pantalla 2023-10-19 a la(s) 11.15.16.png

 

Does this function currently exist?

Message 4 of 7
BrianEkins
in reply to: michelmarroche

That is an OffsetFacesFeature; currently, the API does not support its creation.

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

Hello Brian !

 

Thanks for your answer ..

 

There is no other way to do it ? e.g. with Press/Pull ?

 

Let's say you can't implement that function from a script?

 

You have a lot of experience with script programming, I am automating the creation of a drawer from a box body, and there I perform a series of operations until I reach the drawer with its parts and modifications, I do it manually with functions of split body, shell, offset face and combine... with this I achieve the drawer

 

Now I would like to do this from a script..

 

Do you recommend replacing the offset function with another method other than extruding positive and negative? I have tested it by applying the operations of "JoinFeatureOperation" and "CutFeatureOperation"..

 

Thank you

Message 6 of 7
BrianEkins
in reply to: michelmarroche

It is possible to extrude a planar face and if you use the "Join" operation would result in the same geometry as an offset in many cases.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 7 of 7

Hi Brian, thank you.

 

I'll follow your advice and see what I can do.

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