And how can change the the papersize from f.i. A0 to A1.?
I thougt this
(setq putformaattolayout (vla-item (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object))) 0))
(vla-CanonicalMediaName putformaattolayout ISO_expand_A0_(841.00_x_1189.00_MM) ISO_expand_A1_(594.00_x_841.00_MM))
was the way to go.But gives me this error.
error: no function definition: 841