AutoCAD P&ID
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm trying to write a script to batch export P&ID drawings to autocad and i use this command "-exporttoautocad".
However, this command will initiate the aec export to autocad command. If i run "exporttoautocad" one time (click cancel in the dialog box), close it ,and reenter "-exporttoautocad" command, it will work.
is there any way i can use the silent command directly? Running out of options here, we have around 100+ drawings in each project and its too time consuming to export one by one.
Check out my blog http://lazcad.com
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Sorry to resurrect an old post - but did you find a solution for this?
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
-exporttoautocad works (in 2012), its all command line driven, is that what you are after?

Tomislav Golubovic
Plant Solutions Engineer
Autodesk Australia / New Zealand
Autodesk, Inc.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I had success with this command - but I am unable to write a batch script with it.
When I open drawings with the "open" command and a network path none of the project commands work. Is there a different command I can use that will have it recognize the project and allow me to ExportToAutocad?
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Tomislav Golubovic
Plant Solutions Engineer
Autodesk Australia / New Zealand
Autodesk, Inc.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Either LISP or the .NET API would be fine for me.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I know in VBA it would be pretty easy to loop through a directory and maybe do the ThisDrawing.SendCommand function?
I am yet to test and double check it works as I think it might

Tomislav Golubovic
Plant Solutions Engineer
Autodesk Australia / New Zealand
Autodesk, Inc.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Just found a script I had written for this a while ago. Its a VBA script that you input a folder and what you what to append at the end of the filename, and it does a loop through that folder and exports them to plain vanilla autocad files.

Tomislav Golubovic
Plant Solutions Engineer
Autodesk Australia / New Zealand
Autodesk, Inc.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can you share this script, or at least the snippet of how you opened the file? I've written .Net libraries before that could batch through drawings. But, like I mentioned earlier in the post, if I open the drawing with the normal AutoCAD method, it does not have access to the P&ID commands.
Re: Silent ExportToAu toCAD command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yeah, you would have to run the scripts inside P3D (or P&ID).
I'll PM you

Tomislav Golubovic
Plant Solutions Engineer
Autodesk Australia / New Zealand
Autodesk, Inc.


