Get a Set of Edges used for creation of Fillet feature

Get a Set of Edges used for creation of Fillet feature

Maxim-CADman77
Advisor Advisor
1,003 Views
8 Replies
Message 1 of 9

Get a Set of Edges used for creation of Fillet feature

Maxim-CADman77
Advisor
Advisor

I wonder if it possible to get a set of Edges picked by user for (simple) Fillet creation?

 

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
1,004 Views
8 Replies
Replies (8)
Message 2 of 9

chandra.shekar.g
Autodesk Support
Autodesk Support
0 Likes
Message 3 of 9

Maxim-CADman77
Advisor
Advisor

Thank you for attempt to help but  those samples don't suit my situation (none of them describes getting edges ... but rather setting )

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 4 of 9

Maxim-CADman77
Advisor
Advisor

I still need some help with this...

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 5 of 9

Maxim-CADman77
Advisor
Advisor

Ok. I see nobody knows the answer to the main question of the thread ..  but if it possible at least determine the type of the given Fillet (All Rounds/Complex/Simple)?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 6 of 9

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

After creating fillet feature, used edges are converted to face.

 

Public Sub fillet_edges()
    
    Dim oDOc As PartDocument
    Set oDOc = ThisApplication.ActiveDocument
    
    Dim oDef As PartComponentDefinition
    Set oDef = oDOc.ComponentDefinition
    
    Dim oFillet As FilletFeature
    Set oFillet = oDef.Features.FilletFeatures.Item(1)
     
    Debug.Print oFillet.Faces.Count    
    
End Sub

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 9

Maxim-CADman77
Advisor
Advisor

Ok. Now I can at least choose the first edge of the fillet

MsgBox (ThisDoc.Document.ComponentDefinition.Features.FilletFeatures.Item(1).Faces.Item(1).Edges.Count)

oEdge=ThisDoc.Document.ComponentDefinition.Features.FilletFeatures.Item(1).Faces.Item(1).Edges.Item(1)

But my final goal is re-creation of the issued element I did it for revolutions and extrusions and now I'm working on fixing fillets (the root thread is - https://forums.autodesk.com/t5/inventor-customization/re-create-an-element/m-p/7986267#M84066)

 

How can I "backup" (copy) this edge in order I can use it after suppreesing/deleting the initial fillet?

 

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 8 of 9

cencinaNB2ET
Advocate
Advocate

I need to access the edge collection I used to create a constant radius edge fillet.. but I cant find any examples. If I search through faces then edges I get more edges and not the original used to create it.

 

0 Likes
Message 9 of 9

JelteDeJong
Mentor
Mentor

you can try this rule. When you run the rule it will ask you to select a fillet. if you do it will set the and of the part before the fillet and then select the edges used by the fillet

 

Dim ff As FilletFeature = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartFeatureFilter, "Select fillet")
Dim doc As PartDocument = ThisDoc.Document

ff.SetEndOfPart(True)
doc.SelectSet.Clear()
For i = 1 To ff.FilletDefinition.EdgeSetCount
    For Each edge As Edge In ff.FilletDefinition.EdgeSetItem(i).Edges
        doc.SelectSet.Select(Edge)
    Next
Next

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes