Export to DXF from Flex with Geoprocess Clip N Ship

Discussion created by gis-varna on Feb 25, 2011
Hello, I have a problem that I am struggling to overcome for some time

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.

# 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 = "//<path>/togo23.dxf"

    # Process: Export to CAD...
 gp.ExportCAD_conversion("'//<path>/varna_gp_gdb.gdb/cadaster'", "DXF_R2007", data_DXF, "Use_Filenames_in_Tables", "Overwrite_Existing_Files", "")

    # If an error occurs while running a tool print the message
    print gp.GetMessages()

I have included all the code of the model in the attaced zip file "help"