Print Page | Close Window

ExportToAutocad: Stop Prompts to Overwrite File?!

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=7758
Printed Date: 09.Jun.2026 at 14:27


Topic: ExportToAutocad: Stop Prompts to Overwrite File?!
Posted By: C4D_M4N
Subject: ExportToAutocad: Stop Prompts to Overwrite File?!
Date Posted: 01.May.2012 at 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     



Replies:
Posted By: xrayrays
Date Posted: 02.May.2012 at 04:23
export to ?

i think we're same topic as mine.


-------------
Thanks,



Marcuel Gubaynon

Technical/Draftsman

Philippines


Posted By: C4D_M4N
Date Posted: 04.May.2012 at 19:36
Export to AutoCAD


Posted By: Vladimir Michl
Date Posted: 04.May.2012 at 21:05
You can try this code. Please note the parameters of the -EXPORTTOAUTOCAD may vary but important is the CMDACTIVE code:
 
(command "_-exporttoautocad" "_f" "2010" "" MYFILENAME)(if (=(getvar"cmdactive")1)(command"_Y"))


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window