Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am creating an ArcGIS Model that imports a number of Bentley .dgn files to a geodatabase. My workflow involves:

  1. Running the CAD to Geodatabase Tool, which brings all the drawing features into a feature dataset.
  2. Taking the feature types and then selecting features by the "layer" attribute and writing them to a feature class with an appropriate name.

My issue occurs at the Select tool. It will create a feature class even if it did not find any features to place in the feature class. This creates a whole bunch of empty feature classes since there are a number of layers which may or may not show up in any of my .dgns. So, I would like to know if there is a way to keep my model from creating blank feature classes?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Use the Get Count Management tool described in the link and create a condition that prevents the creation of a feature class unless it returns a non-0 number.

The above link is for ArcGIS 9.3. If you are using 10, the documentation here is more appropriate.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.