Is it posible to save a dxf in memory

المشرف العام

Administrator
طاقم الإدارة
Following on from my question here, when I run the ExportToCAD tool

arcpy.ExportCAD_conversion(listOfLayers, formatRelease, location + fileFormat, "Ignore_Filenames_in_Tables", "Overwrite_Existing_Files", "")It can take up to 20 minutes to export, with the file only being around 1mb in size (it contains all the correct features).

To speed things up, I am trying to export the dxf in memory and then copy it to the specific output folder. I know that in_memory does not support dxf's.I have tried using the tempfile module with the following code

tempDXF = tempfile.SpooledTemporaryFile()but passing tempDXF to the ExportToCAD tool wont work as the tool requires the name and extension (TQ3080.dxf).

Does anyone know of the best way to achieve this using the tempfile module or any other module.



أكثر...
 
أعلى