ENDBLK layer

Discussion in 'AutoCAD' started by Marie Desaulniers, Mar 3, 2004.

  1. I got a problem purging some layers. The layers were not current, there was no entities on them, there was no block (attributes and entities inside) refers to them, no empty block, no empty text, NOTHING. I created a DXF file to find out the objects attached to those layers. They were attached to the ENDBLK object of two different block definitions. I changed the layer name directly inside the dxf file and I re-imported the dxf inside AutoCAD. After that I was able to purge the layers. My question is : how can I change the layer of the ENDBLK object in a lisp routine. I tried to get into the entities using -2 dxf code but I didn't have access to the ENDBLK object. Any idea ?
     
    Marie Desaulniers, Mar 3, 2004
    #1
  2. Step through the block definition recreating each element
    (not a big deal) then make the ENDBLK the way you
    want. There is no way with LISP to changed just the
    ENDBLK entity, you must recreate the block.


    --

    Autodesk Discussion Group Facilitator


    on them, there was no block (attributes and entities inside) refers to them, no empty
    block, no empty text, NOTHING. I created a DXF file to find out the objects attached to
    those layers. They were attached to the ENDBLK object of two different block definitions.
    I changed the layer name directly inside the dxf file and I re-imported the dxf inside
    AutoCAD. After that I was able to purge the layers. My question is : how can I change the
    layer of the ENDBLK object in a lisp routine. I tried to get into the entities using -2
    dxf code but I didn't have access to the ENDBLK object. Any idea ?
     
    Jason Piercey, Mar 3, 2004
    #2
  3. Thanks, I will try it.
     
    Marie Desaulniers, Mar 3, 2004
    #3
  4. Marie Desaulniers

    mataeux Guest

    our special purge command does exactly what you did but with lisp.

    write dxf file, read each section, each object...
    not only do you have to modify ENDBLK objects but also SEQEND objects. and
    BLOCK objects, for some reason, have a layer property that must be set to
    "0" sometimes. dxfout is a good way to purge APPIDs or to merge and purge
    layers.



    was no entities on them, there was no block (attributes and entities inside)
    refers to them, no empty block, no empty text, NOTHING. I created a DXF file
    to find out the objects attached to those layers. They were attached to the
    ENDBLK object of two different block definitions. I changed the layer name
    directly inside the dxf file and I re-imported the dxf inside AutoCAD. After
    that I was able to purge the layers. My question is : how can I change the
    layer of the ENDBLK object in a lisp routine. I tried to get into the
    entities using -2 dxf code but I didn't have access to the ENDBLK object.
    Any idea ?
     
    mataeux, Mar 3, 2004
    #4
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.