AttributeError: module 'arcpy' has no attribute 'ImportCADAnnotation'

226
2
05-06-2021 05:47 AM
GeoDev
by
New Contributor II

 

 

Did ESRI deprecate the ImportCADAnnotation tool? 

 

 

# Variables for Import CAD Annotation
InputCADAnnotation = r"Z:\Development\CAD_ParcelAutomation\APRX\MyProject\Main.gdb\CAD_Geodatabase\Annotation"
OutputFeatureClass = r"Z:\Development\CAD_ParcelAutomation\APRX\MyProject\Main.gdb\CADAnno"

arcpy.ImportCADAnnotation(InputCADAnnotation, OutputFeatureClass, 1200)

 

 

 

Traceback (most recent call last):
  File "Z:/Development/CAD_ParcelAutomation/Python/CAD_ParcelAutomation.py", line 71, in <module>
    arcpy.ImportCADAnnotation(InputCADAnnotation, OutputFeatureClass, 1200)
AttributeError: module 'arcpy' has no attribute 'ImportCADAnnotation'

 

 

 

0 Kudos
2 Replies
DavidPike
MVP Frequent Contributor

Looks like it's not there in Pro, perhaps CAD To Geodatabase (Conversion)—ArcGIS Pro | Documentation will do it for you but that's just a guess tbh.

DanPatterson
MVP Esteemed Contributor

Docs to read when moving to Pro and python 3

Python migration from 10.x to ArcGIS Pro—ArcGIS Pro | Documentation

Tools that are not available in ArcGIS Pro—ArcGIS Pro | Documentation

and in your specific ase

Conversion Tools
CAD
Import CAD Annotation
Note:
CAD text in ArcGIS Pro can be converted to an annotation feature class using the Convert Labels To Annotation tool.


... sort of retired...