Bug ID Number |
BUG-000145785 |
Submitted | January 5, 2022 |
Last Modified | October 7, 2024 |
Applies to | ArcGIS Pro |
Version found | 2.9 |
Operating System | Windows OS |
Operating System Version | 10.0 |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
ArcGIS Pro data format readers are strict on file extension. This allows for better performance in knowing a file's format without actually opening and reading the file's contents.
Arcpy.Describe uses the standard 'format reader' functionality to recognize and open files from disk. ArcGIS Pro readers do not recognize .bat as a DGN format, so it returns False for arcpy.Describe.isDGN. Thus, unable to add a DGN with the .bat extension as a layer to ArcGIS Pro for the same reason.
Workaround
Use file extension recognized by ArcGIS Pro for DGN files.
Steps to Reproduce