Block replacement w/ attributes...

Discussion in 'AutoCAD' started by cyberstrategist, Jul 26, 2004.

  1. Does anyone have a piece of code that replaces one block with another?

    Factors:
    1.) Both blocks would contain identical attribute information. Including
    the order of attributes.
    2.) The insertion point, scale factors, and rotation would be the same as
    the old block.

    I'm just looking not to recreate the wheel on this on... Thanks in
    advance!!
     
    cyberstrategist, Jul 26, 2004
    #1
  2. cyberstrategist

    Conan Witzel Guest

    Do you need to do it in code?

    If not Autocad can do it by reinserting a block of the same name. It asks
    if you want to replace. All atributes are preserved erc.

    You might be able to do it in code this way also. Not sure on that.

    Hope this helps,

    Conan Witzel
     
    Conan Witzel, Jul 26, 2004
    #2
  3. cyberstrategist

    John Coon Guest

    Look in your Program-files under land/samples/vba/ there should be a vba
    routine to replace blocks by name.

    John Coon
     
    John Coon, Jul 26, 2004
    #3
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.