There was a bug with selecting the PageSetup name - here's the fix.
![]() |
|
![]() |
|
![]() |
|
![]() |
There was a bug with selecting the PageSetup name - here's the fix.
And then lastly (I hope) someone's found a bug with the display of the Page Background not updating but still plotting correctly. So I added some code to refresh & regen each Tab.
And to use this for multiple drawings as well:
First get a script running program like ScriptPro from AutoDesk: http://forums.augi.com/showthread.php?t=80461
Then the script (SCR file) would look something like this:Change the (load "....") to where you saved the LSP file; and the (setq dwg "...") to your "template" drawing with the PageSetups created, and the DWF-A1 to the name of the PageSetup you want to set to current for each TAB.Code:(load "C:\\Lisp Routines\\LayoutTools.lsp") (setq dwg "C:\\Projects\\Templates\\PageSetups.dwg") FILEDIA 0 (progn (command "-psetupin" dwg "*") (while (wcmatch (getvar "CMDNAMES") "*PSETUPIN*") (command "_Yes") ) ) -MPageSetup * DWF-A1 FILEDIA 1 QSAVE
And then simply add the DWG's you'd like to apply in ScriptPro and run.
You can use DWG TrueConvert to do this (on multiple drawings)
See: http://lynn.blogs.com/lynn_allens_bl...tip_from_.html
R.K. McSwain | CAD Panacea |
Thanks, the mpagesetup worked great.
Much appreciated.
You're welcome.
Of course rkmcswain's suggestion could save some time on multiple drawings... no need for scripting
I just tried the non-command line version and get a "nothing selected to change" message and no dialog box.
Am I missing something?
Did you also download the DCL file to one of your support folders? I should start changing these to include the dialog definition inside the LSP, but it's going to take some time for code already posted.
Yes, I have both the LayoutTools.LSP and LayoutTools.DCL in my support path.
OK I think I know what your problem is: My code requires that you have a saved & named page setup first. You create one through one of the following methods:
Once you have the page setup saved & named, do the MPAGESETUP command, select the layouts you want to assign this setup to (hold down Ctrl or Shift to select more than one). Click OK. Select the Setup by its name & Clock OK.
- In the plot dialog, setup the page as you want it then click the Add button at the top. Give this setup a name you'll remember later. It defaults to something like Setup 1.
- Right-click on the tab of a layout you've already setup (while you're viewing that layout), select Page Setup Manager (or type PAGESETUP). Click the New button and give it a name.