Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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


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.