CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 1679 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedExportToAutocad: Stop Prompts to Overwrite File?!

 Post Reply Post Reply
Author
C4D_M4N View Drop Down
Newbie
Newbie


Joined: 01.May.2012
Location: United States
Using: AutoCAD 2012, Plant 3D, Revit Arch, MEP, Struct
Status: Offline
Points: 2
Direct Link To This Post Topic: ExportToAutocad: Stop Prompts to Overwrite File?!
    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     
Back to Top
xrayrays View Drop Down
Groupie
Groupie


Joined: 24.Apr.2012
Location: Philippines
Using: autocad2004
Status: Offline
Points: 26
Direct Link To This Post Posted: 02.May.2012 at 04:23
export to ?

i think we're same topic as mine.
Thanks,

Marcuel Gubaynon
Technical/Draftsman
Philippines
Back to Top
C4D_M4N View Drop Down
Newbie
Newbie


Joined: 01.May.2012
Location: United States
Using: AutoCAD 2012, Plant 3D, Revit Arch, MEP, Struct
Status: Offline
Points: 2
Direct Link To This Post Posted: 04.May.2012 at 19:36
Export to AutoCAD
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

CAD Studio a.s.

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 1380
Direct Link To This Post 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)
CAD Studio - www.cadstudio.cz
(Autodesk reseller and developer)
Back to Top

Related CAD tips:
Tip 866:My dialogs for entering file names and PLOT command stopped to work.
Tip 9216:Automatically save raster images edited in Raster Design.
Tip 8966:Batch insert of multiple DWG files into one.
Tip 8829:How to re-format the Autodesk instalation USB key?
Tip 8794:Display CAD model in true size 1:1 on your monitor.


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 2,625 seconds.