Calculate the perimeter of a polygon

296
2
05-29-2011 10:37 AM
DemetrisDemetriou
New Contributor
Hi.
I have a feature layer with land parcels. Each parcel is a polygon. So, I want to calculate the perimeter of each polygon using VBA and ArcObjects. Is there any property in any ArcObjects Interfece in order to just read it?

Any help please?

Thanks
Deme
0 Kudos
2 Replies
shivagugila
New Contributor III
Dim dblPerimeter as double
Dim pCurve as ICurve
Set pCurve = [shape]
dblPerimeter = pCurve.Length

Regards,
Shiva
0 Kudos
DemetrisDemetriou
New Contributor
Thanks for the answer.
However, I suppose I have just to select the polygon first and then use that code?

Deme
0 Kudos