Manuel_Kunde Posted July 5, 2021 Share Posted July 5, 2021 Hello all, when I have saved my drawings for the customer as PDF, I still put a PDF document in the folder wich is saved outside of AutoCAD (locally on the computer). Is it possible to retrieve this file via a Lisp (maybe with a Ghostscript) and put it in the folder where the PDF is stored (Workingfolder)? (The PDF has multiple pages, so I can't put it on a layout in the DWG file.) Quote Link to comment Share on other sites More sharing options...
Steven P Posted July 5, 2021 Share Posted July 5, 2021 So you are wanting 2 copies of the PDF, one stored locally and one in the working folder? Do you use a LISP to plot your PDFs? In which case I would simply change that, duplicate the line that actually plots the PDF and change the filepath part from local-folder to working-folder. Would that work? Quote Link to comment Share on other sites More sharing options...
Manuel_Kunde Posted July 5, 2021 Author Share Posted July 5, 2021 1 hour ago, Steven P said: So you are wanting 2 copies of the PDF, one stored locally and one in the working folder? Do you use a LISP to plot your PDFs? In which case I would simply change that, duplicate the line that actually plots the PDF and change the filepath part from local-folder to working-folder. Would that work? No, the PDF has nothing to do with the drawing in AutoCAD. It is an external file that I always insert into the folder where the DWG and the drawings.PDF are saved. It is always the same PDF that I add there. I want to automate this with command. Quote Link to comment Share on other sites More sharing options...
Steven P Posted July 5, 2021 Share Posted July 5, 2021 Will this help then? http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-12910252-217C-427D-8874-1323611FA74C Quote Link to comment Share on other sites More sharing options...
Manuel_Kunde Posted July 5, 2021 Author Share Posted July 5, 2021 1 hour ago, Steven P said: Will this help then? http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-12910252-217C-427D-8874-1323611FA74C I dont know were to start. This doesnt work. Any Idea? (defun c:meocopy (/ ) (vl-file-copy "C:/Anleitung.pdf" "C:/Autodesk/Anleitung.pdf") (vl-cmdf "start" "C:\Autodesk\Anleitung.pdf") (princ) ) (princ) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 6, 2021 Share Posted July 6, 2021 Look at this example (startapp "C:/Program Files (x86)/Adobe/Acrobat Reader DC/Reader/AcroRd32.exe" filename) Or do you mean (command "-pdfattch" filename pagenumber pt 1 0) 2 Quote Link to comment Share on other sites More sharing options...
Manuel_Kunde Posted July 6, 2021 Author Share Posted July 6, 2021 8 hours ago, BIGAL said: Look at this example (startapp "C:/Program Files (x86)/Adobe/Acrobat Reader DC/Reader/AcroRd32.exe" filename) Or do you mean (command "-pdfattch" filename pagenumber pt 1 0) Ok i got it. You have to write the path only with double backslash \\ 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 7, 2021 Share Posted July 7, 2021 (edited) The forward, dbl back slashes depends a bit on file names etc if they have spaces use dbl back slashes. It is easier sometimes to just always use \\. But a syou can see / works for startapp. Yes its confusing. Dont ask about UNIX. Edited July 7, 2021 by BIGAL 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.