Select to view content in your preferred language

Model Builder: Skipping shapefiles without attributes

616
1
08-09-2013 02:45 AM
JordanWhite
Emerging Contributor
Hi,

I'm trying to create 10m spaced points based on some line data I have. This line data is split over many shapefiles, and some are without attributes following some pre-processing. I want to skip over these files without attributes, as they stop my model.

The model stops at "create random points" on the third file that the model iterates through, as there is no field data to populate the number of points required. Is there a way that I can set up my model to ignore such files without attributes and use the shapefiles that can go through the whole process?

[ATTACH=CONFIG]26610[/ATTACH]
0 Kudos
1 Reply
by Anonymous User
Not applicable
Hi Jordan,

By no attributes, do you mean no fields or no features?

If you mean no features, you can add a condition with the Get" rel="nofollow" target="_blank">http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0... Count tool to make sure there are points. Hope this helps!
0 Kudos