I need to obtain a list of all the CAD drawings within a specified folder (and subfolders). I initially tried using a
Files Iterator in ModelBuilder, but when I specified the extension, it prompted me to use the
Dataset Iterator as the CAD extensions are recognised datasets.
After creating a test folder of four CAD files and a subfolder with one CAD file, I ran the model with a
Collect Value to get the list of the full pathname for each file.
It ran for about a minute before "completing" the model without advancing to collect the values. As I had restricted the dataset type, this meant that it did not find any CAD files. I then removed the restriction and ran it again. This time it quickly returned the CAD files.
I then restricted the dataset type to
FEATURE. It returned a list of the CAD files, when it should not have returned anything. Does the dataset iterator not recognise CAD files properly (whereas the files iterator does, and therefore does not allow me to use it)?