alcaraz

Problem getting the geometry of a line feature

Discussion created by alcaraz on Dec 13, 2011
Latest reply on Dec 14, 2011 by alcaraz
Hello, I have a Type Mismatch error on the last line on this code. How can I get Igeometry from IFeature??? I figure out I need something like paths or segment collections... Thanks in advance. Mar


Dim pFLayerLine As IFeatureLayer
Set pFLayerLine = pMap.Layer(0)

Dim pFCLine As IFeatureClass
Set pFCLine = pFLayerLine.FeatureClass

Dim pFLine As IFeature
Set pFLine = pFCLine.GetFeature(0)

Dim pLine As ILine
Set pLine = pFLine.Shape

Outcomes