Redefine block - retreiving and passing block name.

Discussion in 'AutoCAD' started by Jonno, Oct 5, 2004.

  1. Jonno

    Jonno Guest

    I'm using (cdr (assoc 2 (entget (car (entsel))))) I found on this site to retreive a block name from a drawing. Simple question, but what would the equivalent code be for passing that value onto the command line during a routine to redefine the block?

    Thanks!

    Jon.
     
    Jonno, Oct 5, 2004
    #1
  2. Jonno

    Jonno Guest

    Sorted it. I've simply moved the 'select' routine to further down my command, when prompted for block name. Probably not correct but it does the job.

    Jon.
     
    Jonno, Oct 5, 2004
    #2
  3. Jonno

    Matt W Guest

    Why not just use REFEDIT to redefine a block?
    Simple, straight-forward, no programming involved.

    --
    I support two teams: the Red Sox and whoever beats the Yankees.


    | Sorted it. I've simply moved the 'select' routine to further down my
    command, when prompted for block name. Probably not correct but it does the
    job.
    |
    | Jon.
     
    Matt W, Oct 5, 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.