Getting feature counts of point layer in DGN files

2510
4
Jump to solution
02-01-2016 05:40 PM
MitchHolley1
MVP Regular Contributor

Hello All,

I was wondering if there was a quick way to get a total feature count of the 'Points' layer in a .DGN file.  I have a ton of .DGN files that I need to get the feature counts of without straight up converting them into a shapefile first.

Any ideas are greatly appreciated!

-Mitch

0 Kudos
1 Solution

Accepted Solutions
MitchHolley1
MVP Regular Contributor

I figured it out... and of course, the answer laid within arcpy.

Here is the sample code:

View solution in original post

4 Replies
DanPatterson_Retired
MVP Emeritus

If a ton is like a smaller amount that I am envisioning, CAD to Geodatabase—Help | ArcGIS for Desktop has been ruled out through modelbuilder to batch convert them? Which is obviously a horrendous task.  You don't have cad either I presume or FME or the Data Interoperability extension?

MitchHolley1
MVP Regular Contributor

Dan,

Thank you for the response.  I'd like to run this script daily to get a total feature count of .DGNs being constantly edited/ updated.  The average amount of .DGN files I'd like to get a count for would be around 60.  Only once the a certain amount of .DGNs have been complete, I would like to convert to a shapefile format.

I'll have to look into FME, though.

It just seems like there would be a funtion in the GDAL module to easily complete this task.

0 Kudos
DanPatterson_Retired
MVP Emeritus

I haven't even looked at that route. Sorry, I don't use cad files much.

0 Kudos
MitchHolley1
MVP Regular Contributor

I figured it out... and of course, the answer laid within arcpy.

Here is the sample code: