+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
  1. #1
    Forum Newbie
    Using
    AutoCAD not applicable
    Join Date
    May 2012
    Posts
    7

    Default Renaming attributes tags according to a "master" drawing.

    Registered forum members do not see this ad.

    Hi,
    I'm looking for a lisp to help me rename tags in a drawing according to another drawing.
    The values in the attributes should remain the same and it involves many different blocks so it can't be done manually.
    Thanks.

  2. #2
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows 8.1
    Discipline
    Landscape
    Using
    AutoCAD 2015
    Join Date
    Apr 2010
    Posts
    2,957

    Default

    Welcome to the CADTutor Forum liormic.

    That sounds fun to code.
    Ttry this one first: -- > LM Batch Attribute Editor

  3. #3
    Forum Newbie
    Using
    AutoCAD not applicable
    Join Date
    May 2012
    Posts
    7

    Default

    Thanks but it doesn't work.
    After selecting the blocks I get "Automation Error. No database" and it returns to the command prompt.
    I also didn't understand where exactly do I write the new tag name.

  4. #4
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows 8.1
    Discipline
    Landscape
    Using
    AutoCAD 2015
    Join Date
    Apr 2010
    Posts
    2,957

    Default

    Quote Originally Posted by liormic View Post
    Thanks but it doesn't work.
    After selecting the blocks I get "Automation Error. No database" and it returns to the command prompt.
    I also didn't understand where exactly do I write the new tag name.
    My apologies liormic, I just blindly directed you to that particular lisp program. It does work on certain conditions. Perhaps look at the other codes for attributes on Lee Mac's website.

    LM may have an updated attribute function that deals with TAGS along
    If all else fails then we'll write one for you. or better yet,

  5. #5
    Forum Newbie
    Using
    AutoCAD not applicable
    Join Date
    May 2012
    Posts
    7

    Default

    It's a great site LM has with many interesting things but I didn't find anything that deals with renaming the tag.

  6. #6
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows 8.1
    Discipline
    Landscape
    Using
    AutoCAD 2015
    Join Date
    Apr 2010
    Posts
    2,957

    Default

    I see, okay tell us what do you have in mind.

    rename tags in a drawing according to another drawing.
    Will it always be that drawing as source? or it differs for one drawing to another?

    it involves many different blocks so it can't be done manually.
    Is that the source block or the target?

  7. #7
    Forum Newbie
    Using
    AutoCAD not applicable
    Join Date
    May 2012
    Posts
    7

    Default

    The thing is that there's a drawing with a set of blocks and every once in a while I get another drawing with another set of blocks which I have to change the blocks in it so the tags would be the same every time.
    The values shouldn't be changed but the blocks's names, tags and layers should.
    I can manage changing manually the blocks's name and layers but not the tags.
    I think the best would be if it's possible to make some kind of a table with the block's name, layer and attribute's tags from 1 drawing to corraspond to another block's name, layer and attribute's tags from another drawing it would be the best.
    Thanks.

  8. #8
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows 8.1
    Discipline
    Landscape
    Using
    AutoCAD 2015
    Join Date
    Apr 2010
    Posts
    2,957

    Default

    Quote Originally Posted by liormic View Post
    I can manage changing manually the blocks's name and layers but not the tags.
    The caped crusader can take care of that really. [commnad: Battman]

    But if you want a lips code. Give me a real time example and we'll wirte a code for that. I still don't get the "Master Drawing" factor though.

    make some kind of a table with the block's name, layer and attribute's tags from 1 drawing to corraspond to another block's name
    You may have something there with that idea . I couldve have sworn i wrote a code similar to that some time ago.

  9. #9
    Forum Newbie
    Using
    AutoCAD not applicable
    Join Date
    May 2012
    Posts
    7

    Default

    The Battman does the job but every time I need to go and change each block according to it's tags.
    The "master drawing" isn't important. It's just a drawing which has the new blocks. A list of old blocks and tags Vs. new ones should do.
    Thanks.

  10. #10
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows 8.1
    Discipline
    Landscape
    Using
    AutoCAD 2015
    Join Date
    Apr 2010
    Posts
    2,957

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by liormic View Post
    The "master drawing" isn't important. It's just a drawing which has the new blocks. A list of old blocks and tags Vs. new ones should do.
    Thanks.
    Do you need a lisp routine? or are you telling us that is what you going to do? You can include the list within the lisp routine though [hardcoded], to eliminate the need to open/read an external file.

Similar Threads

  1. drawing "by block" not "by layer"
    By DoctorDrake in forum AutoCAD General
    Replies: 10
    Last Post: 8th Mar 2012, 09:21 pm
  2. Automatically updating "defined width" attributes for MTEXT?
    By Comatosis in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 8th Dec 2011, 09:59 pm
  3. Help needed with "ssget filter for inserts with specific attribute tags"
    By MarcoW in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 9th Jun 2011, 03:42 pm
  4. "Tags" w/ associative/interactive schedules
    By Cad Monkey 2 in forum Architecture & ADT
    Replies: 1
    Last Post: 25th Feb 2011, 10:18 pm
  5. Replies: 1
    Last Post: 25th Nov 2009, 06:35 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts