<?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] How to export to DWG with python? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141271#M6084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried clipping before exporting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 00:44:46 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-10-30T00:44:46Z</dc:date>
    <item>
      <title>[ArcGIS Pro] How to export to DWG with python?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141270#M6083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #006a00;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;Hi everyone and thx alot for your time!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;Im tring to export to DWG, from a country map, a small square zone&amp;nbsp;with 2 xy corners.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;import&lt;/SPAN&gt; &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;in_features =&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c41a16;"&gt;"%MyFeatures%"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;output_type =&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c41a16;"&gt;"DWG_R2004"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;output_file =&lt;/SPAN&gt; &lt;SPAN class="" style="color: #c41a16;"&gt;"c:/data/world.dwg"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;arcpy.ExportCAD_conversion(in_features,&amp;nbsp;output_type,&amp;nbsp;output_file,&amp;nbsp;&lt;SPAN class="" style="color: #c41a16;"&gt;"USE_FILENAMES_IN_TABLES"&lt;/SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"OVERWRITE_EXISTING_FILES"&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;Whis this code, im able to export to DWG with no problem but it export the complete country map zone.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;How can I export only a small square zone in a&amp;nbsp;2 xy area?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;I tried adding:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #595959;"&gt;arcpy.env.extent = arcpy.Extent(-&lt;/SPAN&gt;&lt;SPAN style="color: #1c00cf;"&gt;73.536116, 45.967176 , -73.360613, 45.871700&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f8f8f8;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but everytime&amp;nbsp;the .dwg is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tells me what I did wrong or what I can do to be able to export only a small zone from the country feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx alot &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 23:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141270#M6083</guid>
      <dc:creator>Jean-SimonLevert</dc:creator>
      <dc:date>2018-10-29T23:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS Pro] How to export to DWG with python?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141271#M6084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried clipping before exporting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 00:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141271#M6084</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-30T00:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS Pro] How to export to DWG with python?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141272#M6085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to clip with one xy?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 01:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141272#M6085</guid>
      <dc:creator>Jean-SimonLevert</dc:creator>
      <dc:date>2018-10-30T01:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS Pro] How to export to DWG with python?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141273#M6086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You indicated a square-ish zone which you can construct from 2 xy corners&lt;/P&gt;&lt;P&gt;L(eft), B(ottom)&amp;nbsp; = min(x0, x1), min(y0, y1)&lt;/P&gt;&lt;P&gt;R(ight), T(op) &amp;nbsp; &amp;nbsp; = max(x0, x1), max(y0, y1)&lt;/P&gt;&lt;P&gt;point 1 = (x0, y0)&lt;/P&gt;&lt;P&gt;point 2 = (x1, y1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can construct the rectangle from the L, B, R, T pairs as needed&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 02:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141273#M6086</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-30T02:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcGIS Pro] How to export to DWG with python?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141274#M6087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am totaly lost, im reading and reading but still lost... can you give a exemple of code?&lt;BR /&gt;&lt;BR /&gt;Thx you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-how-to-export-to-dwg-with-python/m-p/141274#M6087</guid>
      <dc:creator>Jean-SimonLevert</dc:creator>
      <dc:date>2018-10-30T11:17:16Z</dc:date>
    </item>
  </channel>
</rss>

