Script to Edit Attribute

Discussion in 'AutoCAD' started by Black Knight, Feb 4, 2006.

  1. Black Knight

    Black Knight Guest

    Hi

    Is there a way to edit a text string within an attribute using a script
    where the inital value of the text string in each case is different ?

    for example here's my script

    =====================================
    attedit
    n
    n
    title <------------- block name specifcation
    dwgno <------------- attribute tag specification

    123 <------------- this is the attribute value it could be
    any text string
    <------------- I want the new value to be blank

    =====================================


    Thank You

    I'm using AutoCAD LT 2005
     
    Black Knight, Feb 4, 2006
    #1
  2. Black Knight

    sw Guest

    Copy the script over and over again.. substituting the values each time..
    (If there's a simpler way I'd really like to know about it.
     
    sw, Feb 6, 2006
    #2
  3. Black Knight

    Black Knight Guest

    Thanks but I want to use the script on 1000 or so drawings not the same one.

    There's only the one attribute value to change on each drawing - however
    it's the existng attribute value that differs from one drawing to the next.
    I want to change all the different values to one same value. i.e. all
    drawings with that attribute have same value

    I know that I could use a batch file (.BAT) to open autocad LT and then open
    every other drawing in the same folder but the script would differ each
    time.

    Sorry if I'm not making sense !!!

    I thought about using the pause for user input with a back slash '\' within
    the script as a sort of workaround but it just continues the script without
    stopping.
     
    Black Knight, Feb 6, 2006
    #3
  4. Black Knight

    laptop Guest

    This probably doesn't work - or maybe there's a much simpler way of
    achieving the same thing but...

    maybe the attribute you're looking for is always sandwiched between the same
    values. If it is, then you could batch convert your zillion drawings to dxf
    and then issue a simple find/replace using a standard text editor.
     
    laptop, Feb 7, 2006
    #4
  5. Only with an add on.
     
    Michael Bulatovich, Feb 7, 2006
    #5
  6. Black Knight

    Black Knight Guest

    Care to enlighten me more ?

    Which add-on ?

    Where ?
     
    Black Knight, Feb 7, 2006
    #6
  7. Michael Bulatovich, Feb 7, 2006
    #7
  8. Black Knight

    zac.carey Guest

    Another thought, is GATTE available in LT?
     
    zac.carey, Feb 7, 2006
    #8
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.