AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Active Member
danielebrizzolari
Posts: 6
Registered: ‎02-10-2012
Message 1 of 6 (493 Views)
Accepted Solution

How to create a macro for change the plot styles in hundreds layouts?

493 Views, 5 Replies
10-04-2012 12:27 AM

Good morning everyone.
I have (unfortunately) the necessity to modify into some files (which are used as models) the print style preset.
These files, which are necessary for the realization of electrical diagrams, have inside hundreds of layout.
Each layout set default printing parameters, so as "Laser b/n.pc3," as the paper size "A4" scale "Scale to Fit", and plot style "Schemi.ctb", etc. ..

Is there a way to create a macro (a field unknown to me) or something similar, to automatically change in all the default layout, for example, the printer "Colori.pc3" and the print style in "Schemi_colori.ctb "?

Thank you very much.

*Expert Elite*
pendean
Posts: 22,272
Registered: ‎11-06-2003
Message 2 of 6 (446 Views)

Re: How to create a macro for change the plot styles in hundreds layouts?

10-04-2012 06:41 AM in reply to: danielebrizzolari

Have you explored using PUBLISH command? It does what you want, but you must have a DWG Template file that contains all of your desired pagesetups in it first (which you should already have and use, if not, create one immediately).

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Active Member
danielebrizzolari
Posts: 6
Registered: ‎02-10-2012
Message 3 of 6 (441 Views)

Re: How to create a macro for change the plot styles in hundreds layouts?

10-04-2012 08:41 AM in reply to: pendean

No, thanks. It's not possible in this way. I want change phisically plot settings of every layouts into dwg files.

I have hundreds of layouts (I think at least 2000 layouts...20 files with 100 layouts each) set with "old_plotter.pc3" and "black.ctb".

Every layout have different plot window referred at the model.

I don't want to change the plot window, i want only change printer and plot style, like "new_plotter.pc3" and "colour.ctb".

 

How can I do?

 

*Expert Elite*
Alfred.NESWADBA
Posts: 8,996
Registered: ‎06-29-2007
Message 4 of 6 (425 Views)

Re: How to create a macro for change the plot styles in hundreds layouts?

10-04-2012 01:42 PM in reply to: danielebrizzolari

Hi,

 

save these 20 drawings as DXF, then open them with an ASCII-editor like Notepad++ (any editor that is able to handle large files). Run a search&replace for your PC3 and CTB. As long as the names are unique (and not e.g. a layer has the same name you are searching for) it's a thing of minutes then.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Member
danielebrizzolari
Posts: 6
Registered: ‎02-10-2012
Message 5 of 6 (409 Views)

Re: How to create a macro for change the plot styles in hundreds layouts?

10-05-2012 01:43 AM in reply to: Alfred.NESWADBA

Hi alfred.neswadba.

Now I'm not at work..I'm going to try this solution Monday morning.

Thanks in advance.

Active Member
danielebrizzolari
Posts: 6
Registered: ‎02-10-2012
Message 6 of 6 (362 Views)

Re: How to create a macro for change the plot styles in hundreds layouts?

10-08-2012 12:20 AM in reply to: Alfred.NESWADBA

Thanks Alfred!

Your solution works good!!!

 

:-)

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.