PDA

View Full Version : can i clear the PAGE SETUP drop-down menu?



cadman33619
2012-01-25, 07:03 PM
is it possible to clear the page setup drop down menue in the plot dialog window? i repeatedly use the same setup that i've created and i don't like to have to go way to the bottom of the drop-down menue to select it. Also, if i clear it....how can i prevent other setups from being saved there?



thanks

Julesagain
2012-01-25, 07:14 PM
You can right click on the layout (if that's where they're saved) and delete them there. (Alt-F-G is the keyboard shortcut to get there). Just select one and click delete down through the list.

cadtag
2012-01-25, 09:21 PM
the only way to prevent new pagesetups from being saved in the list is to not create them in the drawing, or import layouts from other drawings that have other, undesired pagesetups.

and yeah, deleting is a one-at-a-time pain. ctrl-click doesn't work there.

BlackBox
2012-01-25, 11:45 PM
and yeah, deleting is a one-at-a-time pain. ctrl-click doesn't work there.

It might take you longer to manually delete them one-at-a-time, then it did for me to write this (+/-30 Sec) LoL:



(defun c:DeleteAllPageSetups ( / *error*)
(princ "\rDELETEALLPAGESETUPS ")
(vl-load-com)

(defun *error* (msg)
(if acDoc
(vla-endundomark acDoc))
(cond
((not msg)) ; Normal exit
((member msg '("Function cancelled" "quit / exit abort"))) ; <esc> or (quit)
((princ (strcat "\n** Error: " msg " ** ")))) ; Fatal error, display it
(princ))

((lambda (acDoc)
(vla-startundomark acDoc)
(vlax-for oPageSetup (vla-get-plotconfigurations acDoc)
(vla-delete oPageSetup))
(*error* nil))
(vla-get-activedocument (vlax-get-acad-object))))


** Note that this will only delete all page setups, and will not clear the current configurations saved to the layout.

Edit to add - I forgot to mention that this function also provides the ability to 'undo', in the event that you change your mind. :wink:

Cheers! :beer:

jpaulsen
2012-01-26, 02:31 PM
You can delete them using the Page Setup Manager (http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ffa23ce210c4a30acaf-4943.htm).

BlackBox
2012-01-26, 03:43 PM
You can delete them using the Page Setup Manager (http://exchange.autodesk.com/autocad/enu/online-help/search#WS1a9193826455f5ffa23ce210c4a30acaf-4943.htm).

Jim,

While not explicitly named as 'Page Setup Manager', I believe that's been covered already:



... (Alt-F-G is the keyboard shortcut to get there). Just select one and click delete down through the list.



... and yeah, deleting is a one-at-a-time pain. ctrl-click doesn't work there.

... Hence my LISP offering. ;)

Cheers! :beer:

jpaulsen
2012-01-26, 03:58 PM
While not explicitly named as 'Page Setup Manager', I believe that's been covered already:

In C3D Alt-F-G brings up the Save as menu. Was just making sure it was clear.

BlackBox
2012-01-26, 04:43 PM
In C3D Alt-F-G brings up the Save as menu. Was just making sure it was clear.

Aha - I happened to be in Land Desktop 2009 when I tried the keyboard shortcut (I usually just use QAT button), and it did bring up PSM. LoL

No worries - clarity always appreciated. :beer:

cadtag
2012-01-26, 07:28 PM
handy LISP == now if y'all could fix adesk's ps manager interface so it works the way the vast majority of windows dialogs do, eg shft-click to select a contiguous selection, and ctrl-click for discontiguous selection, life would be good. All to often, the two or three pagesetups that are relevant to any given job are strewn willy nilly in the list.

Guess this is just one more item for the 100 Paper cuts thread.



added -- up to 13 pages.

heinsite
2012-01-26, 09:46 PM
I saw an example this morning where all of the setups in the Page Setup Manager had asterisks on both ends meaning they were all current. None could be right click selected for deletion. First, how does that even happen, and second how can it be resolved?

Dave.

BlackBox
2012-01-27, 07:13 AM
handy LISP


Cheers, dude! :beer:



== now if y'all could fix adesk's ps manager interface so it works the way the vast majority of windows dialogs do, eg shft-click to select a contiguous selection, and ctrl-click for discontiguous selection, life would be good. All to often, the two or three pagesetups that are relevant to any given job are strewn willy nilly in the list.

Guess this is just one more item for the 100 Paper cuts thread.



added -- up to 13 pages.

LoL - I'll get right on that. I won't be surprised if the Jaws staff fail to jump at the suggestion though. ;)