Dialog Box type Layout Name Change Routine

Discussion in 'AutoCAD' started by Reid M. Addis, Feb 8, 2005.

  1. Sorry if this has been asked before.
    I have a software program called Multi-Batch (about $30), that let's me
    create custom scripts to run with AutoCAD drawings.
    I have one routine which opens a drawing and plots the "same-named" layout
    tab in each file opened.
    By default, all our template files have layouts named based on size, such as
    "30x42-Plot".
    So, my Batch plot routine runs well, until it hits a file where some
    knucklehead has decided to rename the layout to A2.1, or something like
    that.
    At that point the routine simply dies in that drawing, as scripts are, well,
    pretty dumb, but efficient.

    So, I'm looking for something like Autodesk's Reference Manager software
    which will allow me to peruse a whole bunch of files and rename the errant
    layout tabs.

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Feb 8, 2005
    #1
  2. You can use a simple IF statement within a script but I
    am curious about your typical drawing setup.

    Given the information you have provided thus far, I am
    under the impression that there is only one layout per
    drawing and that layout is named (or at least should be)
    "30x42-Plot". Is that correct?

    My concern is that if you have more than one layout
    named something other than "30x42-Plot", how do plan
    on determining which layout needs to be renamed?
     
    Jason Piercey, Feb 8, 2005
    #2
  3. Actually we have 5 layouts, which is why my message something like: "I'm
    looking for a way to do this in a dialog box..." ;)

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Feb 8, 2005
    #3
  4. I was thinking more along the lines of letting
    the script handle the renaming. Sorry, don't
    do many dialogs.
     
    Jason Piercey, Feb 8, 2005
    #4
  5. Reid M. Addis

    James Buzbee Guest

    So, I'm looking for something like Autodesk's Reference Manager software .
    How about AutoDesk's AutoCAD program? It lets you open multiple drawings,
    edit them and then save them - it's pretty cool. ;-)

    Sorry, couldn't resist. I think Jasons suggestion of letting the script
    rename the layouts is best. A Lisp program involving ObjectDBX and
    ObjectDCL could be written to do what you want, but that would take some
    time . . ..

    If you can come up with some logical conditions for the routine to follow
    you might be able to hard-wire the variables.

    jb
     
    James Buzbee, Feb 8, 2005
    #5
  6. Sigh...and I thought the geniuses hung out in this newsgroup :(

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Feb 8, 2005
    #6
  7. Reid M. Addis

    ECCAD Guest

    Couldn't resist...we do!
    Bob
     
    ECCAD, Feb 8, 2005
    #7
  8. Reid M. Addis

    James Buzbee Guest

    I didn't say I couldn't - it's all a matter of time and money. Let me know
    if you want to contract me to write you an app . . ..

    jb
     
    James Buzbee, Feb 9, 2005
    #8
  9. Nah....got someone working on it ;)

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Feb 14, 2005
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.