The first parameter is layer_bar_set, eg., Counties|Selection. Larry Manire
---------- Original Message ----------- From: "pdr_dan" <[EMAIL PROTECTED]> To: [email protected] Sent: Thu, 17 May 2007 23:09:16 -0000 Subject: [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 ------- End of Original Message ------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Maptitude/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/Maptitude/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
