Offset body face with script ?

Offset body face with script ?

michelmarroche
Contributor Contributor
537 Views
6 Replies
Message 1 of 7

Offset body face with script ?

michelmarroche
Contributor
Contributor

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

 

Thank you

0 Likes
538 Views
6 Replies
Replies (6)
Message 3 of 7

michelmarroche
Contributor
Contributor

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?

0 Likes
Message 4 of 7

BrianEkins
Mentor
Mentor

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
0 Likes
Message 5 of 7

michelmarroche
Contributor
Contributor

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

0 Likes
Message 6 of 7

BrianEkins
Mentor
Mentor

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

michelmarroche
Contributor
Contributor

Hi Brian, thank you.

 

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

0 Likes