Hi,nmunro
thanks for your replying;
i want to add centerline of the extude feature (which was in the red circle)in the sectionview,but the code cann‘t work。

here is my whole code,ipt and idw。
Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDrawingDoc.Sheets.Item(1)
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
Dim oView1 As DrawingView
oView1=oSheet.DrawingViews.Item(1)
Dim oView2 As SectionDrawingView
Dim oDrawingSketch As DrawingSketch
Dim oCropSketch As DrawingSketch
Dim oPoint1 As Point2d
Dim oPoint2 As Point2d
Dim oPoint3 As Point2d
Dim oPoint4 As Point2d
Dim oMPoint1 As Point
Dim oMPoint2 As Point
Dim TubeDia As Double
Dim innerDia As Double
Dim thickness As Double
Dim mergeNum As Double
Dim HeightNum As Double
Dim angleNum As Double
Dim omx1 As Double
Dim omy1 As Double
Dim omz1 As Double
Dim omx2 As Double
Dim omy2 As Double
Dim omz2 As Double
TubeDia=200
innerDia = 3000
thickness = 1000
mergeNum = 200
HeightNum = - 600
angleNum =47/3
omx1 = (innerDia / 2 - mergeNum) * Cos(angleNum / 180 * PI) / 10
omy1 = (innerDia / 2 - mergeNum) * Sin(angleNum / 180 * PI) / 10
omz1 = HeightNum / 10
omx2 = (innerDia / 2 + mergeNum + thickness) * Cos(angleNum / 180 * PI) / 10
omy2 = (innerDia / 2 + mergeNum + thickness) * Sin(angleNum / 180 * PI) / 10
omz2 = HeightNum / 10
oMPoint1 = oTG.CreatePoint(omx1, omy1, omz1)
oMPoint2 = oTG.CreatePoint(omx2, omy2, omz2)
Dim oWorkPoint1 As WorkPoint
Dim oWorkPoint2 As WorkPoint
oWorkPoint1=oView1.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.WorkPoints.AddFixed(oMPoint1, True)
oWorkPoint2=oView1.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.WorkPoints.AddFixed(oMPoint2, True)
oPoint1 = oView1.ModelToDrawingViewSpace(oWorkPoint1.Point)
oPoint2 = oView1.ModelToDrawingViewSpace(oWorkPoint2.Point)
oPoint3 = oView1.DrawingViewToSheetSpace(oTG.CreatePoint2d((oPoint1.X + oPoint2.X) / 2 , (oPoint1.Y + oPoint2.Y) / 2 -1))
oDrawingSketch = oView1.Sketches.Add
oDrawingSketch.Edit
Dim oSketchLine As SketchLine
oSketchLine = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint1, oPoint2)
oDrawingSketch.ExitEdit
Dim View_Lable As String
View_Lable=If(i<26,"",If(i<26*27,"",Chr(65+Floor((i-26)/(26*26))-1))&Chr(64+Floor((i-26*26*Floor((i-26)/(26*26)))/26)))&Chr(65+i-26*Floor(i/26))
oView2 = oSheet.DrawingViews.AddSectionView(oView1, _
oDrawingSketch, oPoint3, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle, , , View_Lable,, 1, 0)
Dim oVector2d As Vector2d
Dim oUnitVector2d As UnitVector2d
Dim oRoAngle As Double
oVector2d = oTG.CreateVector2d(omx2 - omx1, omy2 - omy1)
oUnitVector2d = oTG.CreateUnitVector2d(1, 0)
oRoAngle = oVector2d.AsUnitVector.AngleTo(oUnitVector2d)
oView2.RotateByAngle(oRoAngle)
Dim oEddownExtrude As ExtrudeFeature
oEddownExtrude=oView2.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Features("Eddown")
Dim oDCEnumerator As DrawingCurvesEnumerator
oDCEnumerator = oView2.DrawingCurves(oEddownExtrude)
MessageBox.Show(oDCEnumerator.Count, "oDCEnumerator.Count")
'Dim oCenterLine As Centerline
'oCenterLine =oSheet.Centerlines.AddBisector(oDCEnumerator.Item(1),oDCEnumerator.Item(2))
’Can you check the code to find where is wrong?
thank you again。