Display full version of the post: ExportToAutocad: Stop Prompts to Overwrite File?!

C4D_M4N
01.05.2012, 19:10


I'm am attempting to export models from Plant 3D using ExportToAutoCAD. However, I don't want to be prompted as to whether I want to overwrite, I just want it to save these files out, whether the file exists or not.My lisp skills are sorely lacking but I thought I might try this statement, but my syntax is incorrect:((if(findfile DWGN2))(command "-EXPORTTOAUTOCAD" "2010" DWGN2 "y")(command "-EXPORTTOAUTOCAD" "2010" DWGN2))What is the correct way to write this?There is probably much better way to accomplish this task so any help would be much appreciated!Thanks,Mitch     

xrayrays
02.05.2012, 04:23
export to ?i think we're same topic as mine.

C4D_M4N
04.05.2012, 19:36


Export to AutoCAD

Vladimir Michl
04.05.2012, 21:05

You can try this code. Please note the parameters of the -EXPORTTOAUTOCAD may vary but important is the CMDACTIVE code: [CODE](command "_-exporttoautocad" "_f" "2010" "" MYFILENAME)(if (=(getvar"cmdactive")1)(command"_Y"))[/CODE]