Thursday, June 02, 2005

 

Using an * (asterisk) with –Psetupin

When using PSETUPIN in a script or macro you’ll want to use –PSETUPIN, this will suppress the dialog box. You will then be prompted for a file to pull the pagesetup from. If you are using a template you need to add the .dwt to the end of the file name. Once you’ve entered the file name you be prompted for the pagesetup which will be pulled into your current drawing. Ok here’s the kicker, by using an * (asterisk) it will pull in all of the pagesetups. If the current drawing already has a few of these pagesetups in it you’ll be prompted to REDEFINE (Y/N). I don’t like to answer the (Y/N) question so I will begin the script or macro with by setting the setvar EXPERT variable to 2, which will suppress the (Y/N) prompt, then end the script by setting the EXPERT variable back to 0.

Below is the syntax for a button menu to pull in all of the pagesetups from the MCMASTER.DWT
while suppressing the (Y/N) question. Yes there is a space after the last 0.

^C^Csetvar;expert;2 -psetupin;mcmaster.dwt;* setvar;expert;0

This page is powered by Blogger. Isn't yours?