Community
I would like to be able to open a dwg in a project from command line or cmd.
I found a solution to open with a script file as a parameter like this:
acad.exe /product PLNT3D /language "en-US" /b "OpenProject.scr"
The script file opens a project and subsequently a dwg.
filedia 0 openproject "C:\Sandbox 2\Project.Xml" open "C:\Sandbox 2\PID DWG\211.dwg" filedia 1
This works fine when I run the script from Plant
When I start plant from cmd it look like it does what it is supposed to in the Script but with the I get a lot of errors and end up not opening the project or file.
Have tried with cmd as admin without success.
How do I open a Plant Project and dwg the right way from cmd?
Looks like a permission issue.
I would like to know how to do this too.
I need to open some dwg files in plant3D, execute some commands, and close those files.
Let's see if someone can help us with this.
Edit: I can open every dwg file in a folder. First, in cmd I need to be located in the folder where the files I want to open are, using the cd command. Then I execute the following line to open all the dwg files in this folder:
for %F in (*.dwg) do start "" "%F"
Now I need to know how to run Autocad commands on each of the files
Hi Matt,
Thank you for replaying.
But it is for Windows Command Line I need a solution to open a dwg file in Plant 3D. I was not to clear about that in the original post I admit.
Kasper
Can't find what you're looking for? Ask the community or share your knowledge.