Dim startPoint1 As Point3d = New Point3d(-30, 30, 0.0)
Dim endPoint1 As Point3d = New Point3d(60, 30, 0.0)
Dim line1 As Line
line1 = workPart.Curves.CreateLine(startPoint1, endPoint1)
Dim startPoint2 As Point3d = New Point3d(60, 30, 0.0)
Dim endPoint2 As Point3d = New Point3d(60, -30, 0.0)
Dim line2 As Line
line2 = workPart.Curves.CreateLine(startPoint2, endPoint2)
Dim startPoint3 As Point3d = New Point3d(60, -30, 0.0)
Dim endPoint3 As Point3d = New Point3d(-30, -30, 0.0)
Dim line3 As Line
line3 = workPart.Curves.CreateLine(startPoint3, endPoint3)
Dim startPoint4 As Point3d = New Point3d(-30, -30, 0.0)
Dim endPoint4 As Point3d = New Point3d(-30, 30, 0.0)
Dim line4 As Line
line4 = workPart.Curves.CreateLine(startPoint4, endPoint4)
Dim curves1(3) As Curve
curves1(0) = line3
curves1(1) = line2
curves1(2) = line1
curves1(3) = line4
Dim curveDumbRule1 As CurveDumbRule
curveDumbRule1 = workPart.ScRuleFactory.CreateRuleCurveDumb(curves1)
section1.AllowSelfIntersection(False)
Dim rules1(0) As SelectionIntentRule
rules1(0) = curveDumbRule1
Dim nullNXObject As NXObject = Nothing
Dim helpPoint1 As Point3d = New Point3d(33.1834217214209, -32.8259757986841, 0.0)
section1.AddToSection(rules1, line3, nullNXObject, nullNXObject, helpPoint1, Section.Mode.Create)
Dim origin1 As Point3d = New Point3d(11.40625, -7.96875000000001, 0.0)
Dim vector1 As Vector3d = New Vector3d(0.0, 0.0, 1.0)
Dim direction2 As Direction
direction2 = workPart.Directions.CreateDirection(origin1, vector1, SmartObject.UpdateOption.WithinModeling)
extrudeBuilder1.Direction = direction2
Dim feature1 As Features.Feature
feature1 = extrudeBuilder1.CommitFeature()