Hi Dan,
Use the following code...
ExportArcViewShape( "Cnty" + "|" + "Selection","d: \\tmp\\copy\ \c001_blks.
shp",{{"Fields" ,
flist[1]}})
I hope this help.
Regards,
Ricardo
----- Mensaje original ----
De: pdr_dan <[EMAIL PROTECTED]>
Para: [email protected]
Enviado: jueves, 17 de mayo, 2007 18:09:16
Asunto: [Maptitude] exportarcviewshape()
Hi,
I'm trying to write a macro to export a selection set to an esri shape
file but I'm having some trouble. Below is the code:
qry = "select * where County = '001'"
n1 = selectbyquery( "Cnty","Several" ,qry,{{"Index Limit", 0}})
flist = getfields(," All")
ExportArcViewShape( "Cnty","d: \\tmp\\copy\ \c001_blks. shp",{{"Fields" ,
flist[1]}})
I've loaded a geographic file in and run a selectbyquery to get a
subset of the total, which I've named "Cnty". Everything works fine
until I try to do the export when it comes back with a "cannot find
layer 'Cnty'" error. Does that mean you can't export selections (the
help file says to use the layer or selection set name) or am I doing
something wrong? I tried putting the layer name in place of "Cnty"
and it worked fine but exported everything. Any help would be
appreciated!
Dan Keelan
Llama gratis a cualquier PC del mundo.
Con una excelente calidad de sonido.
http://mx.messenger.yahoo.com/