• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2010/2011/2012 DWG Format

    Reply
    Active Member
    danielebrizzolari
    Posts: 6
    Registered: ‎02-10-2012
    Accepted Solution

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

    355 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.

    Please use plain text.
    *Expert Elite*
    pendean
    Posts: 14,994
    Registered: ‎11-06-2003

    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 | RSS | Twitter | PINS
    Please use plain text.
    Active Member
    danielebrizzolari
    Posts: 6
    Registered: ‎02-10-2012

    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?

     

    Please use plain text.
    *Expert Elite*
    Posts: 6,457
    Registered: ‎06-29-2007

    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
    -------------------------------------------------------------------------
    Please use plain text.
    Active Member
    danielebrizzolari
    Posts: 6
    Registered: ‎02-10-2012

    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.

    Please use plain text.
    Active Member
    danielebrizzolari
    Posts: 6
    Registered: ‎02-10-2012

    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!!!

     

    :-)

    Please use plain text.