<?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 DXF from Flex with Geoprocess Clip N Ship in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/export-to-dxf-from-flex-with-geoprocess-clip-n/m-p/85316#M2929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I have a problem that I am struggling to overcome for some time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to extract data using part of the model "Clip and Ship" and export them to a .dxf file. I am using the sample for script "Export to CAD (Conversion)". I am using Feature layer for a input parameter, which is from a part of a database. The model is workng from the computer I am working on, but after publishing it to the server (ver 9.3.1) the only working part of the script is the clip and ship - it creates a database with the clipped area and finishes the process without giving any errors. It doesn't create any DXF file. This is the code I am using in the script for conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Purpose: To Export to an AutoCad file, with each layer being created from the Name field in the feature class.

# Create the Geoprocessor object
import arcgisscripting, os
gp = arcgisscripting.create()


# Local variables...

data_DXF = "//&amp;lt;path&amp;gt;/togo23.dxf"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Export to CAD...
 gp.ExportCAD_conversion("'//&amp;lt;path&amp;gt;/varna_gp_gdb.gdb/cadaster'", "DXF_R2007", data_DXF, "Use_Filenames_in_Tables", "Overwrite_Existing_Files", "")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurs while running a tool print the message
&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have included all the code of the model in the attaced zip file "help"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 14:02:42 GMT</pubDate>
    <dc:creator>GISTeam</dc:creator>
    <dc:date>2011-02-25T14:02:42Z</dc:date>
    <item>
      <title>Export to DXF from Flex with Geoprocess Clip N Ship</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-to-dxf-from-flex-with-geoprocess-clip-n/m-p/85316#M2929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I have a problem that I am struggling to overcome for some time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to extract data using part of the model "Clip and Ship" and export them to a .dxf file. I am using the sample for script "Export to CAD (Conversion)". I am using Feature layer for a input parameter, which is from a part of a database. The model is workng from the computer I am working on, but after publishing it to the server (ver 9.3.1) the only working part of the script is the clip and ship - it creates a database with the clipped area and finishes the process without giving any errors. It doesn't create any DXF file. This is the code I am using in the script for conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Purpose: To Export to an AutoCad file, with each layer being created from the Name field in the feature class.

# Create the Geoprocessor object
import arcgisscripting, os
gp = arcgisscripting.create()


# Local variables...

data_DXF = "//&amp;lt;path&amp;gt;/togo23.dxf"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process: Export to CAD...
 gp.ExportCAD_conversion("'//&amp;lt;path&amp;gt;/varna_gp_gdb.gdb/cadaster'", "DXF_R2007", data_DXF, "Use_Filenames_in_Tables", "Overwrite_Existing_Files", "")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

except:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurs while running a tool print the message
&amp;nbsp;&amp;nbsp;&amp;nbsp; print gp.GetMessages()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have included all the code of the model in the attaced zip file "help"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 14:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-to-dxf-from-flex-with-geoprocess-clip-n/m-p/85316#M2929</guid>
      <dc:creator>GISTeam</dc:creator>
      <dc:date>2011-02-25T14:02:42Z</dc:date>
    </item>
  </channel>
</rss>

