<?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: Preserving Line Types from CAD to GeoDatabase in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569303#M73362</link>
    <description>&lt;P&gt;you can try&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Regenerate Symbology&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1734444341863.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121920i92923C601681DAD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1734444341863.png" alt="SumitMishra_016_0-1734444341863.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Also you can apply the same symbology as your source CAD using ArcGIS pro&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 14:12:10 GMT</pubDate>
    <dc:creator>SumitMishra_016</dc:creator>
    <dc:date>2024-12-17T14:12:10Z</dc:date>
    <item>
      <title>Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569022#M73349</link>
      <description>&lt;P&gt;I am writing a script to convert CAD file into a format viewable in ArcGIS. I am using&amp;nbsp;arcpy.CADToGeodatabase_conversion() for this purpose.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my source CAD file, I have a variety of line types that are all different, like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewMcKernan_0-1734377441598.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121859i65217B218239C86F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewMcKernan_0-1734377441598.png" alt="AndrewMcKernan_0-1734377441598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, after running the function above and converting to a geodatabase, the same area has lines that are all homogenous:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewMcKernan_1-1734377508699.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121860i2CFB252CC94CBA93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewMcKernan_1-1734377508699.png" alt="AndrewMcKernan_1-1734377508699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice how the coloured and different shaped lines all have changed to be the same type of line in the ArcGIS feature class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to both ArcGIS and AutoCAD. Is there a different function I should be using to convert CAD files to be viewable in ArcGIS and preserve the line types? Any guidance here would be appreciated. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 19:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569022#M73349</guid>
      <dc:creator>AndrewMcKernan</dc:creator>
      <dc:date>2024-12-16T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569074#M73354</link>
      <description>&lt;P&gt;Is the layer attribute preserved in the converted attribute table? You might need to symbolize the resultant data types accordingly.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569074#M73354</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2024-12-16T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569158#M73358</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I don't believe the layer attribute is being preserved. I'm new to this software - when you say to symbolize the resultant data types, what exactly do you mean/how would I do that?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 00:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569158#M73358</guid>
      <dc:creator>AndrewMcKernan</dc:creator>
      <dc:date>2024-12-17T00:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569197#M73359</link>
      <description>&lt;P&gt;If you click on a line a popup should appear indicating what attributes are associated with that line. This will provide confirmation that the Layer value is an attribute.&lt;/P&gt;&lt;P&gt;Next, you can either right click on the feature layer and select symbolize or utilize the context menu and select Symbology. From there Change the symbol type to unique values and set the value to the Layer field. The table of contents on the left panel should change to a list with different colors for the various layers much like my original attachment - initially they came in as all one color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbolize-feature-layers.htm" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbolize-feature-layers.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 03:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569197#M73359</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2024-12-17T03:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569271#M73360</link>
      <description>&lt;P&gt;There is no way to currently "preserve" linetypes between AutoCAD and ArcGIS unless your AutoCAD file was built using the ArcGIS plugin through Civil3D, and even then I think only very basic symbology is transferred.&lt;/P&gt;&lt;P&gt;You can export Line definitions to a file using &lt;A href="https://www.cadstudio.cz/en/download.asp?file=LinOut" target="_self"&gt;LinOut&lt;/A&gt; . Then either use that as reference for your ArcPro linetypes, or try to do some magic with &lt;A href="https://github.com/Esri/cim-spec/blob/main/docs/v3/Types.md" target="_self"&gt;CIM definitions&lt;/A&gt;, but that would be a moderately large project as the CIM is massive and getting everything to translate cleanly from AutoCAD line definition files to Arc would be a bit of a headache given how a single definition in CAD is a multipart symbol in Arc.&lt;/P&gt;&lt;P&gt;If you aren't looking at a programatic solution to this and are instead okay with translating the linetypes manually, you just need to do some research on &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbolize-feature-layers.htm" target="_self"&gt;symbology&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 13:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569271#M73360</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2024-12-17T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving Line Types from CAD to GeoDatabase</title>
      <link>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569303#M73362</link>
      <description>&lt;P&gt;you can try&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Regenerate Symbology&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SumitMishra_016_0-1734444341863.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121920i92923C601681DAD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SumitMishra_016_0-1734444341863.png" alt="SumitMishra_016_0-1734444341863.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Also you can apply the same symbology as your source CAD using ArcGIS pro&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 14:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/preserving-line-types-from-cad-to-geodatabase/m-p/1569303#M73362</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-12-17T14:12:10Z</dc:date>
    </item>
  </channel>
</rss>

