+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Junior Member
    Using
    AutoCAD 2007
    Join Date
    Oct 2008
    Location
    Istanbul
    Posts
    22

    Default How to replace a block with another block in multiple dwg's

    Registered forum members do not see this ad.

    Hi all,
    I need a lisp (any way) to replace a block in many autocad files with an other block quickly. Is there anyone who can help me on that.
    Thanks in advance.

  2. #2
    Super Member asos2000's Avatar
    Computer Details
    asos2000's Computer Details
    Operating System:
    WinXP
    Using
    AutoCAD 2007
    Join Date
    Sep 2007
    Location
    Cairo Egypt
    Posts
    573

    Default

    By using Designcenter
    Sorry for my English.

  3. #3
    Senior Member
    Using
    Map 3D 2008
    Join Date
    Apr 2009
    Location
    The one after 909
    Posts
    402

    Default

    I did a quick search and found two ways to insert a block with the option to overwrite (INSERT or DesignCenter), but neither can be done in a LISP (INSERT doesn't have that option when using -INSERT and DesignCenter can't be done from the command line).

    Anyone else have an idea? I'm sure there must be some way to update the block reference using Visual LISP.

    Doing it on multiple files is easy, and there are many solutions already present in this forum.

    Though, I suppose it would help to clarify, are you updating a block, that is to say, inserting the same one and over-writing it with an updated version, or are you replacing it with a new one entirely? If the latter, that's easier.

  4. #4
    Senior Member Zorg's Avatar
    Computer Details
    Zorg's Computer Details
    Operating System:
    WinXP & Vista64
    CPU:
    AMD X2 2.6GHz
    RAM:
    2GB
    Graphics:
    512Mb SLI
    Primary Storage:
    500GB + 1TB External
    Monitor:
    19"
    Using
    AutoCAD 2008
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    301

    Default

    type BLOCKREPLACE

    Z
    Voila! The ZF-1.

  5. #5
    Senior Member
    Using
    Map 3D 2008
    Join Date
    Apr 2009
    Location
    The one after 909
    Posts
    402

    Default

    Just found this:

    http://www.ellenfinkelstein.com/auto...h_another.html

    Looks like there is a way to do it with -INSERT after all, though -BLOCKREPLACE should work just fine as well. ^^
    ~* And, in the end, the love you take *~
    ~* Is equal to the love you make *~
    - The Beatles -


    GrPlayground
    / Text Find/Replace / Batch Engine / Tower Defense

  6. #6
    Luminous Being dbroada's Avatar
    Computer Details
    dbroada's Computer Details
    Operating System:
    XP Pro
    Computer:
    Dell
    CPU:
    Intel Xeon 2.13GHz
    RAM:
    2GB
    Graphics:
    NVIDA Quadro FX 580
    Monitor:
    DELL 23" & SAMSUNG 21"
    Discipline
    Electro/Mech
    dbroada's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Electro/Mech
    Using
    Electrical 2013
    Join Date
    Nov 2005
    Location
    Sussex, UK
    Posts
    5,023

    Default

    Quote Originally Posted by Freerefill View Post
    INSERT doesn't have that option when using -INSERT
    yes it does.

    use -INSERT oldblockname=newblockname

    or if the block name is the same

    -INSERT block=

    the new block must be in a pathed folder.

    oh well, just read the above post but it shows I knew my stuff.
    "That's it. It's one thing for a ghost to terrorize my children, but quite another for him to play my Theremin." Homer Simpson

    Dave

  7. #7
    Junior Member
    Using
    AutoCAD 2007
    Join Date
    Oct 2008
    Location
    Istanbul
    Posts
    22

    Default

    Many thanx to all you forummates

  8. #8
    Senior Member Zorg's Avatar
    Computer Details
    Zorg's Computer Details
    Operating System:
    WinXP & Vista64
    CPU:
    AMD X2 2.6GHz
    RAM:
    2GB
    Graphics:
    512Mb SLI
    Primary Storage:
    500GB + 1TB External
    Monitor:
    19"
    Using
    AutoCAD 2008
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    301

    Default

    Registered forum members do not see this ad.

    You're very welcome. We are all here to share our wisdom

    Z
    Voila! The ZF-1.

Similar Threads

  1. How do I replace one block with another?
    By mshearer in forum AutoCAD General
    Replies: 8
    Last Post: 18th Apr 2012, 07:14 pm
  2. Replace Multiple blocks with one block
    By cbriana in forum AutoCAD General
    Replies: 17
    Last Post: 20th Jan 2010, 03:29 pm
  3. Replace block with another?
    By blommin in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 24th Feb 2009, 08:26 pm
  4. VBA-Block replace
    By rhs in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 16th Jul 2008, 09:41 am
  5. Replace one block with another block
    By AutoCAD Tips Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 25th Nov 2007, 03:12 am

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