Remove block preview icons fom DWG

Discussion in 'AutoCAD' started by mission, Feb 21, 2005.

  1. mission

    mission Guest

    Hello
    anybody know how to remove block preview icons from DWG using lisp(prefered) or VisuaLisp.

    miss
     
    mission, Feb 21, 2005
    #1
  2. Da:Tony Tanzillo (tony.tanzillo@U_KNOW_WHERE.com)
    Oggetto:Re: Color ByBlock in 2004-5 - Bug? > answer
    Newsgroups:autodesk.autocad.customization
    Data:2005-01-19 20:37:56 PST
    Redefine the block using the -BLOCK command (command line version).


    Here's a function that returns the BLOCK_RECORD
    entity's data list. If the block has an icon, there
    will be multiple 310 groups with the data encoded
    in them.

    (defun get_block_record_data (blockname)
    (entget
    (cdr
    (assoc 330
    (entget (tblobjname "block" blockname)
    )
    )
    )
    )

    After redefining a block using the -BLOCK command,
    the preview icon data is no longer present in the
    block record entity's data (AutoCAD 2005).



    --

    Marc'Antonio Alessi
    http://xoomer.virgilio.it/alessi
    (strcat "NOT a " (substr (ver) 8 4) " guru.")

    --
     
    Marc'Antonio Alessi, Feb 22, 2005
    #2
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.