Does anyone have a LISP routine or know of a way to make a named page setup current in a drawing without using the dialog box?
You used to be able to access page setup from the command line, but it appears they've taken that away.
I want to create a custom button that makes a specific page setup current.
Let me google that for you....
I found that page after I posted and it looked like it had what I needed, but I can't figure out how to make it work.
I'm not a LISP expert, but I can muddle through some things.
In that LISP file, does the bracketed text need to be edited per the users requirements?
Thanks for the reply
Sorry, I didn't look at that one, seems overly complicated. Here is the one I use.
(defun C: pagesetup_import (/ exprt)
(setq exprt (getvar "EXPERT"))
(setvar "EXPERT" 2)
(command ".-psetupin" "C:\\Users\\mikepo\\appData\\Local\\Autodesk\\Auto
(setvar "expert" exprt)
Edit for your exact path and drawing file that holds your pagesetups.
Wouldn't that routine import page setups from an outside file?
I'm trying to make a page setup current that is already in the drawing.
I think I can make this work:
(command "._plot" "_n" "layout name" "page setup name" "" "" "_y" "_n")
Access a broad range of knowledge to help get the most out of your products and services.