Extract layers as individual files

 I want to extract the layers from a DWG file as individual files (and preferably convert them to DXF) at the same time. I want to import this into a his program that cannot handle multiple layers. 

Is the a tool or method for this other than manually saving each layer separately.

Thanks

Comments

  • You could use Lisp to create a custom command that cycles through the layers in the file and for each layer selects everything on that layer and then executes a WBLOCK command using the layer name as the wblock filename.
  • This is a lsp we have used for a number of years that allows you to pick an item to wblock every thing on the layer that the item is on.  We use this to "clean" drawings we get from clients of layers that would get frozen.  The routine will generate a file name for the layer's items that with source file name and the selected layer name.  The routine will also add a number to the file name to avoid overwriting an existing file.  It also creates a list of the deleted layers for later reference.

    Beware that blocks could hold items with multiple layers defeating your goal to fully separate the layers into individual files.

     

    dl.lsp

This discussion has been closed.