Create an Offset Face feature from API

el20db
Explorer
Explorer

Create an Offset Face feature from API

el20db
Explorer
Explorer

Hi,


It seems to me that creating an Offset Face feature from the API is impossible.

el20db_0-1722880437666.png

This is because API's the 'OffsetFacesFeatures' object (docs) has no 'createInput' function, unlike other features.

The closest I can get to it is to create an 'OffsetFeature'. This seems to produce the same output, but creates a new component, so I need to delete the original component. Is this really equivalent to creating an 'Offset Face' feature from the UI?

0 Likes
Reply
271 Views
2 Replies
Replies (2)

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

 

In the UI the OffsetFeature produces (I believe) the same result as with an ExtrudeFeature if it is made over a BRepBody (a closed body).

Could it be a solution for you?

Or what kind of object are you using to make the feature?

 

Effectively , the OffsetFeature only allows NewBody or NewComponent operations, since it creates a new face that is not part of the source body.

 

Regards,

Jorge Jaramillo

 

1 Like

rolandas_vegis
Advocate
Advocate
Hello,

We also need the ability to create OffsetFacesFeatures, as the current OffsetFeature does not provide the functionality we require.

Could you let us know if there are any plans to add API support for this feature?
0 Likes