Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
For some reason in AutoCAD 2022, the following lisp does not work, I've tried all the A2 sizes but still no luck:
(vlax-for objLayout (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
(if (= (vla-get-ModelType objLayout) :vlax-false)
(progn
(vlax-put-property objLayout 'ConfigName "DWG To PDF.pc3")
(setq catchit (vl-catch-all-apply 'vlax-put-property (list objLayout 'CanonicalMediaName "ISO A2 (594.00 x 420.00 MM)")))
(if (vl-catch-all-error-p catchit)
(progn
(princ (vl-catch-all-error-message catchit))
nil
)
(princ "\nPage setup 'ISO A2 (594.00 x 420.00 MM)'")
)
)
)
)
Any ideas?
Solved! Go to Solution.