Hi ,
I am new to to CAD . I was using script pro to convert DWG to DXF format .But it is converting some drawings and failing some times. it is not reliable solution. so i would like to using the API.
Acad : 2012
.net : VS 2010.
I am using the following commands in Script pro.
Drawing file is in one folder and XREF is in another folder.
I am binding the drawings and turning on all the layers and dxfout the file to get the DXF.
_.-XREF
BIND
*
FILEDIA
1
LAYTHW
-LAYER
ON
*
FILEDIA
0
(COMMAND "_SAVEAS" "2010" (STRCAT "E:/DisneyLocate/Drawing/" (GETVAR 'DWGNAME)))
dxfout
I tried to go through forum for the sample code. most of time i am seeing code snippets. I couldn't understand them . Could please give a sample code for those commands and converting the file to DXF ?
This post should help you start with batch process in .NET: http://adndevblog.typepad.com/autocad/2012/04/batch-process-in-memory-1.html
Then, for each Database, call save as DXF