HOW TO

find the number of vertices in an arc.

Last Published: April 25, 2020

Procedure

How can the number of vertices in an arc be counted?

Answer:

There are two methods to accomplish this:

1) Use the ARC COUNTVERTICES command. This adds an item to the attribute table of a coverage that lists the number of vertices for each arc. To set a
variable to the number of vertices in each arc, loop through each record and use the AML [SHOW] function to set each variable. To set a variable to the total number of vertices in the coverage, run STATISTICS on the coverage then use the AML [SHOW STATISTIC] function to extract the total number of vertices in the coverage.

2) Write an AML to loop through selected records in the coverage and run it in ARCEDIT. The following aml will set a variable to the number of vertices in a
selected arc:

EDITFEATURE ARC
SELECT ALL
&SETVAR a = [SHOW SELECT 1]
&SETVAR b = [SHOW ARC %a% NPNTS]

Article ID:000001346

Software:
  • Legacy Products
  • ArcMap 8 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options