Buffer Construction Properties - Why it doesn't work?

Discussion created by supergan on Sep 21, 2010
Latest reply on Oct 10, 2010 by vba_try_hard

All I want to do it create a buffer around a polyline with the buffer created on the right of the polyline. I used BufferConstructor and BufferCOnstructorProperties to do so but I am still getting a full polygon:mad:. Here is the code in VB.NET:

Dim featureClass As IFeatureClass = GetFeatureClassFromShapefileOnDisk("R:\test", "testline")

' GetPolylines takes featureClass and returns IFeatureCursor that points to features in featureClass
Dim FeatureCursor As IFeatureCursor = GetPolylines(featureClass)

Dim feature As IFeature = FeatureCursor.NextFeature()

While Not feature Is Nothing
            Dim featureShape As IGeometry = feature.Shape
            Dim BufferConstructor As IBufferConstruction = New BufferConstructionClass()
            Dim BufferConstructorProp As IBufferConstructionProperties = CType(BufferConstructor, IBufferConstructionProperties)
            BufferConstructorProp.SideOption = esriBufferConstructionSideEnum.esriBufferRight
            Dim featureBuffer As IPolygon = BufferConstructor.Buffer(featureShape, 0.01)
           feature = FeatureCursor.NextFeature()
End While

Any ideas?