How to do Replace face using API

How to do Replace face using API

nedeljko.sovljanski
Advocate Advocate
639 Views
3 Replies
Message 1 of 4

How to do Replace face using API

nedeljko.sovljanski
Advocate
Advocate

Hi,

How to simulate command "Replace face" from Part Env => 3D Model => Surface panel using API? If I use command I can see effect in ReplaceFaceFeature object but I can not find way how to create it thru API only.

 

Regards,

0 Likes
640 Views
3 Replies
Replies (3)
Message 2 of 4

Daan_M
Collaborator
Collaborator

Hey,

 

I found it in the 'Partdocument - Partfeatures' section of the Inventor API Object Model, the way you acces it is displayed below (circeled in red)

Daan_M_0-1600427057681.png

 

0 Likes
Message 3 of 4

nedeljko.sovljanski
Advocate
Advocate

That's right, but with that object you can check what is included in ReplaceFaces object, but first you have to implement "manually" Replace Face.

Maybe Replace Face is "hybrid" command. That's mean couple directives are run and we see result. I implemented sweep solid with cut operation and after that I used similar profile for sweep surface. Effect is the same but there is lot of lines of code.

0 Likes
Message 4 of 4

llorden4
Collaborator
Collaborator

Trying to get into this a bit myself, seems not developed as yet.  Tracing down this tree leads me to a read-only variable with no real API functionality as yet.

llorden4_0-1676653022497.png

 

I did find a different route using Delete Face with the Heal Option that netted the same result I was hoping for.  This link helped.

 

https://adndevblog.typepad.com/manufacturing/2012/06/delete-face-from-part-with-the-inventor-api.htm...

 

Autodesk Inventor Certified Professional
0 Likes