Get the Sketch object from a CountourFlange Feature.

Get the Sketch object from a CountourFlange Feature.

Raider_71
Collaborator Collaborator
161 Views
2 Replies
Message 1 of 3

Get the Sketch object from a CountourFlange Feature.

Raider_71
Collaborator
Collaborator

Hi is there a way to get the Sketch object from a CountourFlange Feature? I have tried various things but cant seem to find a way.

The ContourFlange feature does not have a profile like the Extrude Feature has, because from that you can get the sketch.

 

Any ideas would be great, thanks!

0 Likes
Accepted solutions (1)
162 Views
2 Replies
Replies (2)
Message 2 of 3

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @Raider_71 
How about getting it from the Path? 🙂

Dim CFfeature As ContourFlangeFeature = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartFeatureFilter, "Pick Contour Flange")
Dim oSketch As Sketch = CFfeature.Definition.Path.Item(1).SketchEntity.Parent
MsgBox(oSketch.Name)
0 Likes
Message 3 of 3

Raider_71
Collaborator
Collaborator

Doh! Yeah that will do it... Thanks. I was confused by sweep path and never even considered the path property here... 🙄