<?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 Export to CAD tool ignoring CadType override in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-cad-tool-ignoring-cadtype-override/m-p/1414609#M82302</link>
    <description>&lt;P&gt;Hi People,&lt;/P&gt;&lt;P&gt;I've been trying to write a script which can export shape files to an AutoCAD .dwg file. However I seem to have ran into a little issue.&lt;/P&gt;&lt;P&gt;I've done a calculate fields over the shape file, so every polyline has "Polyline" in the attribute table under "CadType".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_0-1713953350075.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101964iABC5F45F87730B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_0-1713953350075.png" alt="Elfrio_0-1713953350075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Like it says in the documentation, having a field called CADType (documentation is unclear if it should be "CadType" or "CADType") should be able to override the default type in the export to CAD tool.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-to-cad.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-to-cad.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;By default, the tool generates output CAD entity geometries most analogous to the input feature geometry. Output entity types can be overridden by valid values in a field with a name or alias of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CADType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the feature attributes of the input feature. For example, the default entity type for exporting feature annotation is TEXT. However, if the output features have a field named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CADType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with field values of POINT, CAD point entities will be generated in the CAD file rather than the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;TEXT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field. Not all entity CAD entity types are supported for output features.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, if I then open the .dwg file in AutoCAD. i get 2 of different types of lines ("Line" and "3D Polyline"). I only want it to export normal standard Polylines. Which is the only type it actually doesn't export&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_1-1713953750004.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101965iBE5523D37ABF0F35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_1-1713953750004.png" alt="Elfrio_1-1713953750004.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_2-1713953765509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101966i3B19E19A0DDDB155/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_2-1713953765509.png" alt="Elfrio_2-1713953765509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've for field names i've tried "CADType", "CadType", and "Entity". For the values I've tried "Polyline","POLYLINE" and "LWPOLYLINE" None of these seem to do the trick&lt;/P&gt;&lt;P&gt;Can anyone tell me what I might be doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im running Arcgis Pro 3.1.0 on Windows 10. I am not really able to change versions.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 10:19:28 GMT</pubDate>
    <dc:creator>Elfrio</dc:creator>
    <dc:date>2024-04-24T10:19:28Z</dc:date>
    <item>
      <title>Export to CAD tool ignoring CadType override</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-cad-tool-ignoring-cadtype-override/m-p/1414609#M82302</link>
      <description>&lt;P&gt;Hi People,&lt;/P&gt;&lt;P&gt;I've been trying to write a script which can export shape files to an AutoCAD .dwg file. However I seem to have ran into a little issue.&lt;/P&gt;&lt;P&gt;I've done a calculate fields over the shape file, so every polyline has "Polyline" in the attribute table under "CadType".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_0-1713953350075.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101964iABC5F45F87730B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_0-1713953350075.png" alt="Elfrio_0-1713953350075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Like it says in the documentation, having a field called CADType (documentation is unclear if it should be "CadType" or "CADType") should be able to override the default type in the export to CAD tool.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-to-cad.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/export-to-cad.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;By default, the tool generates output CAD entity geometries most analogous to the input feature geometry. Output entity types can be overridden by valid values in a field with a name or alias of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CADType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the feature attributes of the input feature. For example, the default entity type for exporting feature annotation is TEXT. However, if the output features have a field named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;CADType&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with field values of POINT, CAD point entities will be generated in the CAD file rather than the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;TEXT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field. Not all entity CAD entity types are supported for output features.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, if I then open the .dwg file in AutoCAD. i get 2 of different types of lines ("Line" and "3D Polyline"). I only want it to export normal standard Polylines. Which is the only type it actually doesn't export&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_1-1713953750004.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101965iBE5523D37ABF0F35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_1-1713953750004.png" alt="Elfrio_1-1713953750004.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elfrio_2-1713953765509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101966i3B19E19A0DDDB155/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Elfrio_2-1713953765509.png" alt="Elfrio_2-1713953765509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've for field names i've tried "CADType", "CadType", and "Entity". For the values I've tried "Polyline","POLYLINE" and "LWPOLYLINE" None of these seem to do the trick&lt;/P&gt;&lt;P&gt;Can anyone tell me what I might be doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im running Arcgis Pro 3.1.0 on Windows 10. I am not really able to change versions.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:19:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-cad-tool-ignoring-cadtype-override/m-p/1414609#M82302</guid>
      <dc:creator>Elfrio</dc:creator>
      <dc:date>2024-04-24T10:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export to CAD tool ignoring CadType override</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-to-cad-tool-ignoring-cadtype-override/m-p/1414628#M82304</link>
      <description>&lt;P&gt;I sort of get why it probably wasn't working. I think it's not the best design.&lt;/P&gt;&lt;P&gt;Some of the shape files had Z values in them. Setting the arcpy.env.outputZFlag to 'Disabled' in the script that creates these shape files seems to have done the trick.&lt;/P&gt;&lt;P&gt;Why the override gets ignored if you do have Z values, but only for polylines, I have no idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT. the outputZFlag option does get rid of the 3D Polylines. However, the Lines are still an issue. I want this drawing to contain exclusively Polylines. No Lines, nothing else. So I haven't quite been able to figure out why the override isn't actually overriding anything.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-to-cad-tool-ignoring-cadtype-override/m-p/1414628#M82304</guid>
      <dc:creator>Elfrio</dc:creator>
      <dc:date>2024-04-24T13:12:39Z</dc:date>
    </item>
  </channel>
</rss>

