Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
I have this new problem, i'm trying to create a Surface extrude from a Arc.
My sketch has 3 Arc, and then i select the first Arc in it. This is the one i need to Extrude. But somthing i wrong with my code.. Don't know where the error is, as I have never done a Extrude feature..
My sample code:
Dim oDoc As PartDocument = oInvApp.ActiveDocument
Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition
Dim oArc As SketchArc = oDef.Sketches.Item("Segm_C02").SketchArcs(1)
Dim oExtrudeDef As ExtrudeDefinition
oExtrudeDef = oDef.Features.ExtrudeFeatures.CreateExtrudeDefinition(oArc, PartFeatureOperationEnum.kSurfaceOperation)
oExtrudeDef.SetDistanceExtent("1000", PartFeatureExtentDirectionEnum.kPositiveExtentDirection)
oDef.Features.ExtrudeFeatures.Add(oExtrudeDef).Name = "Extrude"
What do i need to change?
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2
Solved! Go to Solution.