PDA

View Full Version : Remove Page Setups From Drawing Files



CADdancer
2006-11-14, 04:53 PM
Hello AUGI Members:

Is there a way using VBA or Vlisp to remove (delete) all of the page setups that are defined on a drawing automatically, without manually opening the Page Setup Manager and deleting the Page Setups one at a time....??

I have many drawings that have Page Setups for old plotters, defined on the drawing and now that we have new plotting and printing devices when a user goes into the plot command AutoCAD is looking for the old plot devices define in the page setups. This causes the AutoCAD session to hang for a long period of time and sometimes even crashes AutoCAD.

Any assistance with this matter would be appreciated.....!!!

Regards,
Vince

Mike.Perry
2006-11-15, 10:02 AM
Hi

Review the links in HotNews article "TIPniques: The Power of Page Setups - October 2005 (http://www.augi.com/publications/hotnews.asp?page=946)"...




Below are some Routines/General information found on AUGI.com that you should prove helpful with the Page Setup and Plotting process:Plus, HERE is the link to the associated HotNews (http://forums.augi.com/forumdisplay.php?f=31) forum thread.

Have a good one, Mike

CADdancer
2006-11-15, 09:31 PM
Mike:

Thank you for the input.....I found what I needed, in that information, and it allowed me to accomplish my objective.

Thanks again for the assistance....!!!

Regards,
Vince

danielmoritz
2011-07-01, 06:20 PM
The above link appears to be broken. Could I get a re-post of that info, it sound like exactly what I need.

Thanks,
Daniel

arshiel88
2011-07-01, 08:52 PM
That article was 6 years ago! I doubt somebody did save it for future use. :D

You might want to try this instead.


Sub RemoveAllPageSetups()
Dim PageSetup As AcadPlotConfiguration
For Each PageSetup In ThisDrawing.PlotConfigurations
PageSetup.Delete
Next
End Sub