Detecting Stationary Face for Unfold Feature using API

Detecting Stationary Face for Unfold Feature using API

darryl.menezes
Contributor Contributor
480 Views
2 Replies
Message 1 of 3

Detecting Stationary Face for Unfold Feature using API

darryl.menezes
Contributor
Contributor

Hello,

     Is there any way to detect stationary faces while adding Unfold feature using Inventor API, just like the Inventor user interface displays while we run the unfold command like shown in below picture?

While running the unfold command in Inventor, these surfaces are detected within fraction of a second. There definitely must be a way to detect them from the API too. I just can't figure out how. Thanks.

 

Unfold.PNG

0 Likes
481 Views
2 Replies
Replies (2)
Message 2 of 3

C_Kastanek
Enthusiast
Enthusiast

Not sure if this is still helpful but I was able to do a For loop with a try catch to test out the different faces on my part and then stop when it succeeded and got it to work! 


0 Likes
Message 3 of 3

WCrihfield
Mentor
Mentor

Just so you are aware...the UnfoldFeature object actually has a StationaryFace property you can check to get this.  The UnfoldFeatures collection can be found under the SheetMetalFeatures.UnfoldFeatures, and the SheetMetalFeatures is the more specific type derived from PartFeatures, when you get it from SheetMetalComponentDefinition.Features.  The SheetMetalComponentDefinition is the more specific type derived from PartComponentDefinition when the PartDocument's SubType is a sheet metal part.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes