Select to view content in your preferred language

Export parcels via model builder

2933
6
04-22-2011 05:34 AM
Labels (1)
MarkVolz
Frequent Contributor
Hello,

I need the ability to export the parcels class from the parcel fabric to a shapefile.  I can export it via ArcMap, however I would like to export the parcels via model builder.  how can I do that?
Tags (2)
0 Kudos
6 Replies
NickKenczka
Emerging Contributor
Hello,

I need the ability to export the parcels class from the parcel fabric to a shapefile.  I can export it via ArcMap, however I would like to export the parcels via model builder.  how can I do that?


There are many ways to do this, you can simply use the "select" tool and all you have to do is build a simple statement where you are querying the proper parcel "types".  Keep in mind, however, that this will bring all of the fields over with the selection. 

What we do is actually build a layer file inside of model builder, only selecting the fields we wish to carry, and then copy that layer into an empty feature class in a database.  Hope all that makes sense, and good luck!
0 Kudos
CarlosIsaac_Cabrera
Deactivated User
There are many ways to do this, you can simply use the "select" tool and all you have to do is build a simple statement where you are querying the proper parcel "types".  Keep in mind, however, that this will bring all of the fields over with the selection. 

What we do is actually build a layer file inside of model builder, only selecting the fields we wish to carry, and then copy that layer into an empty feature class in a database.  Hope all that makes sense, and good luck!


Does the Parcel Fabric specific make a feature layer work for you?  Its not working for me.
0 Kudos
CarlosIsaac_Cabrera
Deactivated User
There are many ways to do this, you can simply use the "select" tool and all you have to do is build a simple statement where you are querying the proper parcel "types".  Keep in mind, however, that this will bring all of the fields over with the selection. 

What we do is actually build a layer file inside of model builder, only selecting the fields we wish to carry, and then copy that layer into an empty feature class in a database.  Hope all that makes sense, and good luck!



Also, does anyone have this working correctly?
gp.MakeParcelFabricLayer_fabric()

I want to do something like this, but I'm not sure if it works.  I'm able to create a feature layer but then I can't do any geoprocessing with it.  Am I doing something wrong.  I want to create something like this script.

http://arcscripts.esri.com/details.asp?dbid=16324

It basically creates a feature layer from a selection.  This would come in handy because I could use it to create a selection from fabric and then create a "mask" of parcels that I want to create a map book page for.  Any and all help would be appreciated.

I want to be able to do this!
gp.MakeParcelFabricLayer_fabric(inFC,outLayer,defQuery)
0 Kudos
CarlosIsaac_Cabrera
Deactivated User
There are many ways to do this, you can simply use the "select" tool and all you have to do is build a simple statement where you are querying the proper parcel "types".  Keep in mind, however, that this will bring all of the fields over with the selection. 

What we do is actually build a layer file inside of model builder, only selecting the fields we wish to carry, and then copy that layer into an empty feature class in a database.  Hope all that makes sense, and good luck!



Also, does anyone have this working correctly?
gp.MakeParcelFabricLayer_fabric()

I want to do something like this, but I'm not sure if it works.  I'm able to create a feature layer but then I can't do any geoprocessing with it.  Am I doing something wrong.  I want to create something like this script.

http://arcscripts.esri.com/details.asp?dbid=16324

It basically creates a feature layer from a selection.  This would come in handy because I could use it to create a selection from fabric and then create a "mask" of parcels that I want to create a map book page for.  Any and all help would be appreciated.

I want to be able to do this!
gp.MakeParcelFabricLayer_fabric(inFC,outLayer,defQuery)

Yes, I have read this 🙂
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009000000006000000.htm
0 Kudos
ChrisBuscaglia
Esri Contributor
Also, does anyone have this working correctly?
gp.MakeParcelFabricLayer_fabric()

I want to do something like this, but I'm not sure if it works.  I'm able to create a feature layer but then I can't do any geoprocessing with it.  Am I doing something wrong.  I want to create something like this script.

http://arcscripts.esri.com/details.asp?dbid=16324

It basically creates a feature layer from a selection.  This would come in handy because I could use it to create a selection from fabric and then create a "mask" of parcels that I want to create a map book page for.  Any and all help would be appreciated.

I want to be able to do this!
gp.MakeParcelFabricLayer_fabric(inFC,outLayer,defQuery)

Yes, I have read this 🙂
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009000000006000000.htm


At ArcGIS 10, you can apply a "mask" to parcels within a map sheet by enabling data driven pages and then apply a "data driven page" to the data frame for clipping.  You can also exclude layers, for instance parcels.  This essentially creates an area of interest for the map page, making everything for that page stand out.

Screenshot Attached below...

If you are trying to create a published representation of parcels based on the entire parcel fabric or just a subset via selection, then the following code applies to you.  Also keep in mind that you can manually run these tools via GeoProcessing.

>>> import arcpy
>>> from arcpy import env
## Specify workspace (FD)
>>> env.workspace = "E:\LandRecordsTemplate\LocalGovernment.gdb\ParcelEditing"
## Make in-memory Parcel Fabric (entire Fabric) Specify output name (TESTER2)
>>> arcpy.MakeParcelFabricLayer_fabric("ParcelFabric", "TESTER2")
<Result 'TESTER2'>
##Input in-memory output from above into copy features, specifying the parcels sub-class (Parcels) and the output (OUTPUTPUBLISH).  Note the ParcelPublishing FD.
>>> arcpy.CopyFeatures_management
("TESTER2\Parcels","E:\LandRecordsTemplate\LocalGovernment.gdb\ParcelPublishing\OUTPUTPUBLISH")
<Result 'E:\\LandRecordsTemplate\\LocalGovernment.gdb\\ParcelPublishing\\OUTPUTPUBLISH'>
0 Kudos
CarlosIsaac_Cabrera
Deactivated User
At ArcGIS 10, you can apply a "mask" to parcels within a map sheet by enabling data driven pages and then apply a "data driven page" to the data frame for clipping.  You can also exclude layers, for instance parcels.  This essentially creates an area of interest for the map page, making everything for that page stand out.

Screenshot Attached below...

If you are trying to create a published representation of parcels based on the entire parcel fabric or just a subset via selection, then the following code applies to you.  Also keep in mind that you can manually run these tools via GeoProcessing.

>>> import arcpy
>>> from arcpy import env
## Specify workspace (FD)
>>> env.workspace = "E:\LandRecordsTemplate\LocalGovernment.gdb\ParcelEditing"
## Make in-memory Parcel Fabric (entire Fabric) Specify output name (TESTER2)
>>> arcpy.MakeParcelFabricLayer_fabric("ParcelFabric", "TESTER2")
<Result 'TESTER2'>
##Input in-memory output from above into copy features, specifying the parcels sub-class (Parcels) and the output (OUTPUTPUBLISH).  Note the ParcelPublishing FD.
>>> arcpy.CopyFeatures_management
("TESTER2\Parcels","E:\LandRecordsTemplate\LocalGovernment.gdb\ParcelPublishing\OUTPUTPUBLISH")
<Result 'E:\\LandRecordsTemplate\\LocalGovernment.gdb\\ParcelPublishing\\OUTPUTPUBLISH'>


TY I'll do this.
0 Kudos