Fab5000 Posted October 17, 2023 Posted October 17, 2023 This isnt a specific code question but more of a question on whether a setvar value could be throwing off the way my code works to bring in multiple pdf sheets as XREFs. We've created multiple PDF-inserting LISPs to automate our work as much as possible, but we've discovered ever since switching to AutoCAD 22, if we try to use one of those lisps to bring in ALL pages on a PDF, the lisp will only bring in the first sheet. This was all working fine on CAD 20. Please let me know if attaching the lisp would help solve this. Hoping to come across anyone that might've encountered and solved a similar problem Quote
CyberAngel Posted October 17, 2023 Posted October 17, 2023 In 2017 they changed the mechanism for importing PDFs. Before, you could only bring in the first page. Now, you can choose which page or pages you want to import. I can't say for sure that this is the problem, but if your LISP routine was written for a pre-2017 version, you may want to verify that the commands in your code still work as expected. Quote
Fab5000 Posted October 18, 2023 Author Posted October 18, 2023 19 hours ago, CyberAngel said: In 2017 they changed the mechanism for importing PDFs. Before, you could only bring in the first page. Now, you can choose which page or pages you want to import. I can't say for sure that this is the problem, but if your LISP routine was written for a pre-2017 version, you may want to verify that the commands in your code still work as expected. Interesting. This could definitely be contributing to it. Definitely something to investigate. If anybody has any other theories or ideas, please let me know! Quote
BIGAL Posted October 19, 2023 Posted October 19, 2023 (edited) Pretty sure it was Lee-mac that had a get number of pages in a pdf then can use pdfattach. If you look at this part of a script to load pdfs to single dwgs. (write-line (strcat "pdfattach " (chr 34) pdfpath "\\" filein (chr 34) ) fo) (write-line "1 0,0 1.0 0.0" fo) "1 0,0 1.0 0.0" page 1, insert point, scale , rotation. So in a repeat for number of pages, num pt 1.0 0.0 Edited October 19, 2023 by BIGAL Quote
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.