I’m trying to write a python script that imports pictures and places them in a document to automate a drawing set. The I am unable to use the “-picture” command and then enter the file name. Every time I do this within the python script it ends up running an error in the command line that states the file is not found or unable to open.
Even if I use the “-picture” command manually and then type in the name of the file it gives me the same error message. I’ve tried with multiple files, file names, file locations etc. If I type in the filename it will return the correct file path but will say " not found, unable to open"
If I use the “picture” command or select browse in the “-picture” command I can select the file from the pop up browser no problem and it imports fine. The problem seems to just be with selecting the file directly from the command line which is what I want to be able to do in order to automate the process.
Any suggestions? I don’t think it is a python issue necessarily. I have copied direct code from other threads that people have suggested and it does not seem to work. I think the problem lies in the “-picture” command itself and its inability to select a file from the command prompt.