amikelson

Unable to cast into IEnumVertex2 from IEnumVertex

Discussion created by amikelson on Feb 22, 2010
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

Attachments

Outcomes