Can't get face entity from fillet edge set edges

Can't get face entity from fillet edge set edges

adminBRJ4S
Explorer Explorer
361 Views
2 Replies
Message 1 of 3

Can't get face entity from fillet edge set edges

adminBRJ4S
Explorer
Explorer

Hi,

 

I have found a bug with the Fusion API where, when a face is used in the selection set of a Fillet Feature, information about the face cannot be retrieved from the API. The documentation claims that the FilletEdgeSet edges can contain Edges, Faces or Features (https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-f7b0210f-32db-4845-a63d-8ff42664bc0d), but when faces are used, nothing is returned. Below is a script that, with the attached file, demonstrates this issue.

 

import adsk.core
import adsk.fusion

app = adsk.core.Application.get()
ui = app.userInterface
design = adsk.fusion.Design.cast(app.activeProduct)
root_component = design.rootComponent
timeline = design.timeline

# Get fillet feature
fillet_timeline_object = timeline.item(2)
fillet_feature = fillet_timeline_object.entity

# Roll to just before feature is created
fillet_timeline_object.rollTo(True)

# Get edge set
edge_set = fillet_feature.edgeSets.item(0)

# Show number of edges
edges = edge_set.edges
ui.messageBox("Number of entities in edges collection: " + str(edges.count))

 Is there a workaround to this or plans to fix the issue?

 

Thanks

 

Robert

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

BrianEkins
Mentor
Mentor

I can reproduce this, and it seems like a bug to me. I'll see that it gets reported.

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

adminBRJ4S
Explorer
Explorer

Thanks Brian!

0 Likes