(defun c:test(/ doc)
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(vla-startundomark doc)
(vl-catch-all-apply 'vla-put-taborder (list (vla-get-activelayout doc) (1- (vla-get-count (vla-get-layouts doc)))))
(vla-endundomark doc)
(princ)
)
@ PatrickOh yes, but as we asked for the active layout
Try your codes while you are in Model space . :wink: