Layers I can't delete in MDT 5

Discussion in 'AutoCAD' started by dbirix, Aug 11, 2003.

  1. dbirix

    dbirix Guest

    I have extra layers in my drawing. I wrote an autolisp program that changes all entities in a drawing to layer 0. I verified the program by checking the entities. There are xref'd blocks in the drawing. I changed entities in those drawings to layer 0. The xref'd blocks do not contain the layers I am trying to delete. Everything is on layer 0, BUT, I still have unused layers in the drawing I can't delete.

    I can delete one of the layers if I delete the drawing views created from the model (which was not on layer 0 originally). This is not practical because I need to run this program on approximately 1000 drawings. Still, other unused layers remain. No, these are not layers created by Mechanical Desktop when views are created in paper space. These are layers created manually by an overzealous drafter.

    Could there be something buried in the model at the sketch, extrusion or feature level that I haven't reached? If so, how do I access it?


    dbirix, Aug 11, 2003
  2. Are the layers frozen in a viewport?
    Jason Piercey, Aug 11, 2003
  3. dbirix

    dbirix Guest

    No they're not Frozen but when I erase the viewport the layer can be deleted. I guess the layers are somehow attached to the viewport.

    dbirix, Aug 11, 2003
  4. dbirix

    Dan Bounds Guest

    We're trying to find a way to move the parts (about 1000) in Mechanical
    Desktop assemblies to layer 0 so they will be the same for another lisp and
    VBA I'm writing.

    Dan Bounds, Aug 21, 2003
  5. dbirix

    Dan Bounds Guest

    I hope I don't have to do it. I'm not sure I have to now. I'm writing a
    VBA using about 6 frames with optionbuttons in them to collect options so to
    turn off layers.

    I'm having trouble getting more than one frame working. Can't use control
    array's as in VB and trying to figure out how to procede.

    Dan Bounds, Aug 21, 2003
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.