Stumped Replacing Blocks?

Discussion in 'AutoCAD' started by Ron E, Sep 15, 2003.

  1. Ron E

    Ron E Guest

    I am trying to replace blocks without attributes with new blocks with
    attributes.

    1. I have tried redefining the blocks - the attribute order got messed up in
    the redefined block
    2. I tried making new blocks with new names and using the block replace
    express tool
    Both of those methods created some sort of nested block that would bring up
    the refedit dialog box when doubleclicked....

    I vaguely remember an undocumented command line version:
    -block<name1>=<name2>

    I don't recall the proper syntax, (is name1 or name2 the new block, and
    where should the blocks be located?) when trying this conmmand with two
    existing blocks I got the message "invalid block name".

    TIA
     
    Ron E, Sep 15, 2003
    #1
  2. Ron E

    ffejgreb Guest

    You mention express tools, so once you recreate the block and the attributes
    get messed up, can't you use battman to reorder and sync attributes to
    update the database?

    There is also the Rename (-rename for command line) command that allows
    renaming of blocks.

    Jeff
     
    ffejgreb, Sep 15, 2003
    #2
  3. Ron E

    Chip Harper Guest

    -insert<enter>blockname=YourReplacementBlockNameHere<enter>
     
    Chip Harper, Sep 15, 2003
    #3
  4. Ron E

    Ron E Guest

    It becomes a nested block so when I try to attedit, I am told that there are
    no editable attributes I would guess that battman would not find any
    attributes, but I'll give it a shot...
     
    Ron E, Sep 15, 2003
    #4
  5. Ron E

    Allen Jessup Guest

    I hope someone answers your question. I've never found an answer to this
    problem.

    Allen
     
    Allen Jessup, Sep 15, 2003
    #5
  6. Hi,

    When redefining blocks with a different number of attributes and you want that already inserted reference get the new attributes and keep the old ones (when the TAG is the same) ATTSYNC and BATTMAN often don't work as expected.

    If you don't have an own routine try using ATTREDEF.
    Works equivalent to BLOCK but re-inserts existing references.

    But be sure to download the version from the autodesk site 'coz the shipping version places all inserts on the current layer which maybe ain't desirable.

    good luck

    On 15.09.2003 19:59 Ron E wrote:



    The block still shows up as having no editable attributes. Any block I insert afterwards works properly, and when the block that was replaced is exploded, the attribute tags are there. I get the same behavior whether I use the insert command or the block replace express tools command. Could it be a sysvar issue? Attached is a very small file with two drawings, one has both blocks (rec and rec2), and the second has rec replaced with rec2 for all instances. If I try to attedit the block rec2 in the second file, it tells me that It has no editable attributes, yet when exploded, the attribute is there. ---------------------------------------- "Chip Harper" &lt;&gt; wrote:



    -insert&lt;enter&gt;blockname=YourReplacementBlockNameHere&lt;enter&gt;








    -- ruul the existence of wblocks is just an urban myth
     
    ruul morawetz, Sep 15, 2003
    #6
  7. Ron E

    Walt Engle Guest

    Ok, so how does one go the Autodesk and get the newer version of
    attredef? I went to Autodesk and did a search and go "The page you are
    looking for cannot be found".
     
    Walt Engle, Sep 15, 2003
    #7
  8. Ron E

    Walt Engle Guest

    Is there a newer version of attredef than on the CD? If so, how does
    one go about getting it?
     
    Walt Engle, Sep 15, 2003
    #8
  9. ruul morawetz, Sep 15, 2003
    #9
  10. Ron E

    Ron E Guest

    Thank you very much! That worked perfectly!!

    You are right about the current layer thing in the shipping version -
    dangerous if you have one block on several layers.

    --
    Ron

    -------------------------------------------------------------------

    Hi,

    When redefining blocks with a different number of attributes and you want
    that already inserted reference get the new attributes and keep the old ones
    (when the TAG is the same) ATTSYNC and BATTMAN often don't work as expected.

    If you don't have an own routine try using ATTREDEF.
    Works equivalent to BLOCK but re-inserts existing references.

    But be sure to download the version from the autodesk site 'coz the shipping
    version places all inserts on the current layer which maybe ain't desirable.

    good luck
     
    Ron E, Sep 15, 2003
    #10
  11. On 15.09.2003 22:25 Ron E wrote:



    Thank you very much! That worked perfectly!!


    you're welcome.



    You are right about the current layer thing in the shipping version - dangerous if you have one block on several layers.


    yep. it's one of less appreciated behaviours.



    -- Ron




    -- ruul the existence of wblocks is just an urban myth
     
    ruul morawetz, Sep 15, 2003
    #11
  12. Ron E

    Walt Engle Guest

    Thanks.
     
    Walt Engle, Sep 15, 2003
    #12
  13. you're welcome.
     
    ruul morawetz, Sep 15, 2003
    #13
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.