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 ready code in VBA and ArcObjects to do this?

Any help please?

Thanks Deme

  • Hi Demetris, if the reply to your previous question was satisfactory, can you please mark it as an answer before you ask a new question. This keeps the answering spirit of participants alive...
    – ujjwalesri
    Jun 1 '11 at 7:17
  • 1
    @Ujj Six hours is a little hasty! It's wise for questioners to wait some period--a few days usually--before accepting answers, because good new ones continue to come in. Also, SE sites never have asked that everybody accept all answers before asking new questions.
    – whuber
    Jun 1 '11 at 13:11

You could use the ICurve3 interface. Here is a full ArcObjects sample.

Dim dblPerimeter as double
Dim pCurve as ICurve3
Set pCurve = pYourPolygon    
dblPerimeter = pCurve.Length

Update - Select feature, code example link:

  • Thank you for that code. However, what I have to do before that; I mean I have just to write a code to select the certain polygon?
    – Demetris
    Jun 1 '11 at 12:21
  • @Demetris, I will update my answer with a select feature code example.
    – artwork21
    Jun 1 '11 at 12:47
  • Ok. Thank you very much. So, the new code will be complete to check it?
    – Demetris
    Jun 1 '11 at 14:26

All polygons have a length property, so you can simply access that.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.