Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

cadffm
en respuesta a: Anonymous

Yes, just one...

But take a look at this:

 

For your special case (you have already attached individual pages and set up layouts)
i edited one codesample for import multiple already attached PDFATTACH-pages, so it better fit to your case.

 

(defun c:ConvPDFrefs (/ pages)
(and
(setq pages (ssget '((0 . "PDFUNDERLAY"))))

(foreach page (vl-remove-if 'listp (mapcar 'cadr (ssnamex pages)))
(vl-cmdf "_.-pdfimport" page "_all" "_unload")
);_foreach
(alert "all PDFattachments are still attached, just UNLOADED.\nUse command XREF to detach them if no longer needed")
)
(princ)
)

 

OFFtopic.
Here are codesamples for "attach multiple PDFpages in one step"
https://forums.autodesk.com/t5/autocad-forum/pdf-import-into-autocad/m-p/8018322#M934144
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/insert-multi-page-pdf/td-p/5695335

Sebastian