Jump to content

Anybody encountered issues using a PDF-importing lisp ever since they switched to Autocad 2022?


Fab5000

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 by BIGAL
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...