CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
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, autocad2013
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

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2124
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)
ARKANCE - https://arkance.world - Autodesk Platinum Partner
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,412 seconds.