vla-SetActivePageSetup
Sets a named page setup active for a given layout by name
(vla-SetActivePageSetup layoutName pageSetupName)
Arguments
layoutName
A string specifying the name of a layout to apply the named page setup.
pageSetupName
A string specifying the page setup to apply to the layout.
Return Values
Nil if either the layoutName, or pageSetupName cannot be found. Otherwise, T if successful.
ExampleCode - Auto/Visual Lisp: [Select]
(vla-SetActivePageSetup layoutname “YourPageSetupName”) )
Can you post the autoloader bundle from previous posts?
I tried the augi link and others, would not let me get to it.
I am running Autocad 2012.
Thank you.
OK, CRAZY QUESTION.
How do I unstall?
oops, I meant to say "install" on my previous message, not "unstall".
But, I dropped it in the applications plugin folder.
Now, How do I use it?
It there a way of testing it, such as droppingCode: [Select](foreach layout1 (layoutlist) (vla-SetActivePageSetup layoutname “pdf 24-36”))
on the command line?
Is there a way that I can tell if the plugin loaded successfully?
You can test it at the command line, as you've noted above, so long as the named page setup exists within that drawing... Or you can paste same in VLIDE and you should see that the custom LispFunction Method is a 'native' function (unlike your own Defun, presuming you're not using Pragma on your custom LISP).
Am using it correctly?
(foreach layoutname (layoutlist) (vla-SetActivePageSetup layoutname “pdf 30-42”))
layoutlist gets the list of all layouts in the drawing and puts in the variable layoutname.
"for each" layout in that list run vla-setactivepasetup using the names in the "layoutname" variable and set the active page setup to "pdf 30-42".
When I installed it, unzipped it into appdata/roaming/autodesk/.../applicationplugins
mapped the subfolder under the bundle content/windows/2012/... to the support folders.
and to acaddoc.lsp I added the .net command that maps the dll file.