/* claclength.aml /* This trivial example prints the total length of the arcs in coverage %cov% using cursors /* Look how slow it is! /* Run from ArcEdit &s cov roads edit %cov% arc &s totlength 0 sel all cursor open &do &while %:edit.AML$NEXT% &s totlength %totlength% + %:edit.length% cursor next &end cursor close re %cov% y /* Now print our result! &ty The total length of the arcs in %cov% is %totlength% &return