AnsweredAssumed Answered

Definition Queries and exporting to shapefile

Question asked by mm166368 on Feb 16, 2017
Latest reply on Feb 16, 2017 by dkwiens

Hi, I'm fairly new to python and was able to figure out how to do an export from our organization's SDE feature class to a shapefile through python. I'm trying to figure out how to do a an EQUAL TO definition from my SDE feature class and then have it export it to a shapefile with the definition query. For example, I have a feature class in SDE of sewer manholes and within that feature class I'm trying to pull out just the abandoned manholes and have be its own shapefile.

Any tips, suggestions, or sample codes would be helpful.

I've also attached a screen shot of the code I'm using to the feature class into a shapefile. I just need to add into that for the definition query portion of my task.