<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS pro crashes while adding CAD data to map in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577346#M73587</link>
    <description>&lt;P&gt;Tech Support would be able to answer that.&amp;nbsp; Pro has more checks on data than arcmap did and not all of those checks are public.&lt;/P&gt;&lt;P&gt;You didn't indicate whether Cad to Geodatabase worked or didn't.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 10:12:08 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-01-21T10:12:08Z</dc:date>
    <item>
      <title>ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1576290#M73577</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am working with ArcGIS Pro 3.4 and attempting to add a DGN file to my active map . The same DGN file loads successfully in ArcMap 10.8.1 without issues. However, when I try to add it in ArcGIS Pro, the application crashes immediately&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1737011737573.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123461iE268D96C0F0CDA54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1737011737573.png" alt="SumitMishra_016_0-1737011737573.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_1-1737011797127.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123462i82197DF02C60F495/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_1-1737011797127.png" alt="SumitMishra_016_1-1737011797127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried arcpy script to add but still it is crashing ArcGIS pro 3.4&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

fc = r"path-to-dgn"

try:
    aprx = arcpy.mp.ArcGISProject("CURRENT")
    active_map = aprx.activeMap
    active_map.addDataFromPath(fc)
    arcpy.AddMessage("Data added successfully to the map.")
except arcpy.ExecuteError:
    # Corrected: Removed f-string and used string concatenation
    arcpy.AddError("ArcGIS error: " + arcpy.GetMessages(2))
except Exception as e:
    # Corrected: Removed f-string and used string concatenation
    arcpy.AddError("An error occurred: " + str(e))&lt;/LI-CODE&gt;&lt;P&gt;Please help if anyone faced this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 07:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1576290#M73577</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-01-16T07:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1576324#M73578</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/cad-to-geodatabase.htm" target="_blank"&gt;CAD To Geodatabase (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there are warnings about dgn files which may be the issue with your approach&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 11:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1576324#M73578</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-16T11:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577132#M73583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for replying!&lt;BR /&gt;&lt;BR /&gt;Why is the DGN file not opening in ArcGIS Pro 3.4 when I attempt to add it to my active map, while the same DGN file loads successfully in ArcMap 10.8.1 without any issues?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 06:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577132#M73583</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-01-20T06:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577161#M73584</link>
      <description>&lt;P&gt;If it doesn't open in a blank map with no basemap or coordinate system set, then you should report it to Tech Support.&amp;nbsp; If it does open in an empty map, then preconditions needed to show it aren't met in Pro.&lt;/P&gt;&lt;P&gt;Remember, ArcGIS Pro is completely different piece of software and that is why they have the cad to geodatabase tool,&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 11:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577161#M73584</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-20T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577319#M73586</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;for replying!&lt;/P&gt;&lt;P&gt;I attempted to open the file in a blank map without a basemap or coordinate system, but the same error occurred.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1737430367103.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123637i8447170D612D84A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1737430367103.png" alt="SumitMishra_016_0-1737430367103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_1-1737430420159.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123638iD7B3D654A5D47D5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_1-1737430420159.png" alt="SumitMishra_016_1-1737430420159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I reported the issue to ESRI Tech Support, and they informed me that the data is corrupt. However, I&lt;STRONG&gt; want to understand why the DGN file opens successfully in ArcMap 10.8.1 but not in ArcGIS Pro 3.4?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a way to identify&lt;STRONG&gt; what is missing in the DGN file&lt;/STRONG&gt; for it to work in ArcGIS Pro?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 03:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577319#M73586</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-01-21T03:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577346#M73587</link>
      <description>&lt;P&gt;Tech Support would be able to answer that.&amp;nbsp; Pro has more checks on data than arcmap did and not all of those checks are public.&lt;/P&gt;&lt;P&gt;You didn't indicate whether Cad to Geodatabase worked or didn't.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 10:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577346#M73587</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-21T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS pro crashes while adding CAD data to map</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577353#M73588</link>
      <description>&lt;P&gt;Thanks for replying&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Using &lt;STRONG&gt;CAD to Geodatabase&lt;/STRONG&gt; caused ArcGIS Pro to crash.&lt;/P&gt;&lt;P&gt;I discovered the issue was due to the units in the DGN file not being set to meters.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1737456260920.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123644iC3C9D00EE337E7C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1737456260920.png" alt="SumitMishra_016_0-1737456260920.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Changing the units to meters resolved the problem for me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_1-1737456377277.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123645i2479B2EDEE254219/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_1-1737456377277.png" alt="SumitMishra_016_1-1737456377277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the script for Microstation V8 in case someone else encounters this issue.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Public Sub changeunit()
 
 
Dim fol As Folder
Dim fil As File
Dim fso As New FileSystemObject
Set fol = fso.GetFolder("folder-path-to-DGN")
For Each fil In fol.Files
Set dsg = Application.OpenDesignFile(fil.Path)
    CadInputQueue.SendCommand "set units meters"
CadInputQueue.SendCommand "FILEDESIGN"
 
Next
 
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But still ArcMap automatically assigning the units and ArcGIS pro does not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 10:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-crashes-while-adding-cad-data-to-map/m-p/1577353#M73588</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2025-01-21T10:50:20Z</dc:date>
    </item>
  </channel>
</rss>

