Unable to cast into IEnumVertex2 from IEnumVertex

367
0
02-22-2010 04:23 AM
AnthonyMikelson
New Contributor III
I cannot cast into IEnumVertex2 from pointCollection.EnumVertices.

Here is the code:

Dim pointCollection as IPointCollection5 = CType(topologicalOperator.Intersect(m_editSketch.Geometry, esriGeometryDimension.esriGeometry0Dimension), IPointCollection5)

Dim enumVertex as IEnumVertex2 = = CType(pointCollection.EnumVertices, IEnumVertex2)

Attached you will see a messagebox that has the error message.

Thank you,
Tony
0 Kudos
0 Replies