I need help with attredef command

I have edited the position of an attribute in a block. But, existing block instances do not update to the new position.  I recall that this was an issue with AutoCAD as well, and that some lisp was created to automate the correction of this problem by finding an instance of the block, and then storing the attribute data, and then re-inserting the block.

As I searched the forum here, I found refernce to attredef in regards to the BcadTools freeware. Is this the correct tool to use for this?

When I type attredef,  the command prompt shows nothing, but I think I am supposed to type the name of a block,and I do. Then, I am prompted to select a block, and I select the block with the same name. Then, the command prompt says "This block has no attributes."

What am I doing wrong?

Joe Dunfee

Comments

  • Hi Joe,

    Once again, if you want a solution using a third-party tool, our GeoTools software has a tool "Replace Block" which provides an option to reposition the new attributes as per new block definition or leave them as it was in the old definition. The GT_REPBLK commnad is a combination of ATTREDEF as well as attribute repositioning flexibility.

    Read more about it here: http://www.4d-technologies.com/geotools/manual/block_tools.htm#REPBLK

    If you have moved the locations of attributes in the new block definition and want them to be updated, make sure you uncheck this option "Reposition target block attributes at source attribute"

    Regards
    Rakesh Rao
    www.coordsys.com

  • Yes it is part of the BcadTools.

    Quote from BcadTools help file:

    AttRedef

    Allows to redefine a block definition incl. contained attribute definitions

    Command: Attredef


    Enter name of the block you wish to redefine: <enter name of block>

    Select objects for new Block ... <select new block entities>

    Specify insertion base point of new Block <specify new base point>

    Attributes of existing block references retain their current values after block redefinition, if the new block definition contains the same attribute (based on the tag).

    Attributes of existing block references which are not contained in new block definition (based on the tag) are deleted from existing references.

    New attributes not existing in current block definition will be assigned their default values.

     

    You don't need to reselect the same block (reference) but instead select the elements that the new block definition should contain of. Any further questions?

This discussion has been closed.