HOW TO
The AML in this article allows you to convert your link coverages to link files.
Code:
/* ================================================
/* linkcov2file.aml
/*
/* Convert link coverage to ASCII link file
/*
/*
/* USAGE: &RUN linkcov2file.aml <incover> <outfile>
/*
/* ================================================
&args incov outfile
arcedit
edit %incov% link
select all
&sv numlinks = [show number selected]
/* Open file for writing
&sv outfileunit = [open %outfile% openstat -write]
&if %openstat% <> 0 &then &return Error %openstat% opening file %filename%
/* Loop through all links, check for identity links, write file
&do i = 1 &to %numlinks%
select $recno = %i%
&sv fromxy = [show link [show select 1] from]
&sv toxy = [show link [show select 1] to]
&if %fromxy% = %toxy% &then ~
&ty Identity link - not written to output
/* If identity tics, do not write
&else &sv writestat = [write %outfileunit% %fromxy%,%toxy%]
&end
/* Close write file
&sv x = [close %outfileunit%]
quit
&return
Code:
Arc: &RUN linkcov2file.aml mylincov mylinkfile.txt
Get help from ArcGIS experts
Download the Esri Support App