The Sketch class has a GetAllGeometry function.
You could use that and then filter out all non-curves.
I tried like below but "GetAllGeometry " is not a member of features.feature
For Each targetSketch As features.feature In workPart.Features If targetSketch.name = "PARCA" Then parcaSketch = targetSketch MsgBox(parcaSketch.tag) Exit For End If Next For Each abc As Curve In parcaSketch.getallgeometries lw.WriteLine(abc.Tag) Next
Yes, there is a Sketch class and a SketchFeature class. You got the SketchFeature class. You can get the Sketch from that with feature.Sketch.
So in your case parcaSketch.Sketch.GetAllGeometries()
Don't know what you are using, but maybe your autocomplete only shows you the functions without a return value because your line is not something like xyz = parcaSketch.Sketch ?
try to typecast feature type to sketchFeature type. then you will be able to get sketch from intellisense.
When I start to write ".sk" it brings me other things rather than "Sketch". That means I could not cast properly.
That means, that variable is still a feature type, so you won't ba able to see it unless you cast it to sketchFeature.
In vb, you have to manually cast it to particular feature type. Since, it is a sketch, you will be able to cast it to sketchFeature.