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.
-exporttoautocad works (in 2012), its all command line driven, is that what you are after?
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?
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
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.
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.
Yeah, you would have to run the scripts inside P3D (or P&ID).
I'll PM you
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.
|AutoCAD Land Desktop|
|AutoCAD Plant 3D|
|AutoCAD Raster Design|
|AutoCAD Structural Detailing|
|Ecotect Analysis - Desktop Tools|
|Green Building Studio - Web-Based Service|
|Robot Structural Analysis|