Select to view content in your preferred language

Export to DXF from Flex with Geoprocess Clip N Ship

2365
1
02-27-2011 12:15 AM
GISTeam
Deactivated User
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 and use this finction in Flex. 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"
             
try:
    

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

except:
    # 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"
Tags (2)
0 Kudos
1 Reply
BobNichols
Regular Contributor

I know this is a really old thread, but did you ever figure out a solution.  I am experiencing the same issue when trying to export to a dwg or dxf.  However exporting to FGDB's and Shapefiles works perfectly.

0 Kudos