Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Rename Blocks?

  1. #21
    100 Club
    Join Date
    2012-08
    Posts
    111
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Quote Originally Posted by pbejse View Post
    I see



    That is a problem is it not? Now going back to the posted codes. Lets start over. What will be the action if the name already does exist? put a number after the name?
    And are you aware that BlockRename routine will change every instances of the block with the same name? is that what you are really after?
    Hi pbejse,
    Thank for replay.
    I don't wanna put number after renamed block. I'd like to rename each block to a specific name.
    e.g. I have about 50 blocks in my drawing, and all have the same same is ECT and I'd like to rename each of them to a specific name.
    Is it possible??

    Kind Regards
    Billy

  2. #22
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Just a question if I may: Why do you want to do this? You have to ask yourself: "Is there not a simpler way of differentiating between block references? Say adding a hidden attribute to them, or using their handles?

    I'm just asking since: I can't see any benefit in doing it. and your DWG is going to become huge with lots of blocks, since you're effectively remaking a new block definition simply duplicated from the original definition for each reference of the block. It's as if you exploded each one then remade each one into a new block.

  3. #23
    100 Club
    Join Date
    2012-08
    Posts
    111
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Quote Originally Posted by irneb View Post
    Just a question if I may: Why do you want to do this? You have to ask yourself: "Is there not a simpler way of differentiating between block references? Say adding a hidden attribute to them, or using their handles?

    I'm just asking since: I can't see any benefit in doing it. and your DWG is going to become huge with lots of blocks, since you're effectively remaking a new block definition simply duplicated from the original definition for each reference of the block. It's as if you exploded each one then remade each one into a new block.
    You're totally right, irneb
    I know the damage it could be caused in my file.
    I'm trying to create a reference block in two file different, but the blocks already exist in my file and have the same name, so I'm trying to rename them.

    Sorry guys, my english isn't good.
    I hope you have been understood my task.

    Regards
    Billy

  4. #24
    All AUGI, all the time
    Join Date
    2010-10
    Posts
    535
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Quote Originally Posted by BILLYJOW View Post
    Hi pbejse,
    Thank for replay.
    I don't wanna put number after renamed block. I'd like to rename each block to a specific name.
    e.g. I have about 50 blocks in my drawing, and all have the same same is ECT and I'd like to rename each of them to a specific name.
    Is it possible??
    It is Billy, again ***what will be the action be when the name already exist? Here's the thing . Renaming a block will affect all instances of the block with the same name ( do i hear an echo here ). so if the name is already taken do you as use an alernative name from your "specific name" list?

    Quote Originally Posted by BILLYJOW View Post
    You're totally right, irneb
    I know the damage it could be caused in my file.
    Indeed

    Quote Originally Posted by BILLYJOW View Post
    I'm trying to create a reference block in two file different, but the blocks already exist in my file and have the same name, so I'm trying to rename them.
    refer to ***

    Now, slowly tell us, what exactly how you want this? what do you mean by reference block?

  5. #25
    100 Club
    Join Date
    2012-08
    Posts
    111
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    @pbejse
    Thank you so much for the help, your first code worked exactly as I wanted to. It renamed all the selected block in my drawing.
    I was trying to rename the same blocks in the drawing 2, but the blocks is scattered around the drawing and I couldn't use the same code to rename.
    So I'm trying to rename manually.
    Finally I'll use a Lee Mac's code that retrieve specific attribute values from blocks in a user compiled list, from either the current working drawing, or all drawings in a director.

  6. #26
    Design Visualization Moderator stusic's Avatar
    Join Date
    2004-10
    Location
    Denver, Colorado
    Posts
    1,515
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Have you taken a look at Lee Mac's COPYBLOCK routine? It has the option of just renaming the block. Start the command, click a block, specify a new name (or use the defualt suggestion of the old block name + a sequential number).

    http://lee-mac.com/copyblock.html

  7. #27
    100 Club
    Join Date
    2012-08
    Posts
    111
    Login to Give a bone
    0

    Default Re: Rename Blocks?

    Hi all

    @stusic
    Many thanks, I'll take a look the Lee Mac's routine.

    @pbejse
    @irneb
    Thanks for the help and good advice.

    I'm really appreciate your help, guys.

    Billy

Page 3 of 3 FirstFirst 123

Similar Threads

  1. rename selected blocks
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2017-08-10, 08:46 AM
  2. Rename Blocks and Multi-View Blocks within AutoCAD
    By Wish List System in forum ACA Wish List
    Replies: 3
    Last Post: 2013-12-06, 08:53 AM
  3. Rename multiple blocks
    By knutsen in forum AutoLISP
    Replies: 4
    Last Post: 2012-09-06, 07:48 AM
  4. Rename blocks
    By godfrey0417 in forum AutoCAD Tips & Tricks
    Replies: 2
    Last Post: 2007-10-12, 03:38 PM
  5. Rename Anonymous Blocks
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2007-08-23, 12:10 PM

Posting Permissions

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