How would I create a lisp to extract

Discussion in 'AutoCAD' started by Friptzap, Apr 27, 2004.

  1. Friptzap

    Friptzap Guest

    an attribute from one type of block and use the info to fill out a tag in a different block.

    block square (one of many square blocks with different attributes)
    tag#a <this would be the tag name for the attribute I need info from.

    block round (one of many round blocks with different attributes)
    tag#b <this would be the tag name for the information I want to replace from tag#a

    I need to be able to select one "square" block and have the info from one of it's tags (tag#b) fill out one or more selection picks of "round" blocks tag#b attribute.

    Thanks in advance.
     
    Friptzap, Apr 27, 2004
    #1
  2. Here is a synopsis -
    entsel to pick block
    entget to get entity
    entnext to get attribute data
    ssget to select blocks to change attribute
    while to cycle through each selected entity
    entget to get entity of selection set
    entnext to get attribute of selection set
    subst to substitute the data
    entmod to modify
    entupd to view

    of it's tags (tag#b) fill out one or more selection picks of "round" blocks
    tag#b attribute.
     
    Alan Henderson, Apr 27, 2004
    #2
  3. Friptzap

    Friptzap Guest

    That looks like a good start for me thanks.
     
    Friptzap, Apr 27, 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.