AnsweredAssumed Answered

Featurelayer to Geometry

Question asked by hello7 on Mar 1, 2012
Latest reply on Mar 1, 2012 by Neil
In c# .net how to I get the geometry of a feature layer using arcobjects? Its probably simple but i'm new to this. I tried to cast to it but i didn't work.
below is a quick sample.

IFeatureClass pEventFC;
pName = (IName) pRESN;

pEventFC = (IFeatureClass) pName.Open();

IActiveView pActive;
pFLayer = new FeatureLayerClass();
pFLayer.FeatureClass = pEventFC;

IGeometry pGeom;

pGeom = (IGeometry)pFlayer

Any clues?

Outcomes