Remove the empty layers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Remove the empty layers

jituchnfd4321
How can we remove the empty layers from drawing?
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

dellus
This post was updated on .
You have to do it manually one by one.


Edit: not quite true. In 2.2.0 you can select more than one layer in one go. See below.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

Raj120p1
In reply to this post by jituchnfd4321
You have to do it manually one by one.

yes its right way
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

Gary S
In reply to this post by jituchnfd4321
Multiple layers can be removed using [Shift]-Select (left mouse button) or [Ctrl]-Select:

[Shift]-Select for a contiguous group of layer:                               Or [Ctrl]-Select to a non-contiguous group:
                         

A dialog will be shown to confirn the deletion of multiple layers:


You can also filter  to list a group of layers:
         

... and then select multiple layers as above.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

ivodorr@gmail.com
In reply to this post by jituchnfd4321
There is one more quick way to remove empty/unused layers.
You just create new empty drawing. Then you select all objects in your original drawing and copy them to the new empty drawing. Only used layers are created in the list of layers of the new drawing.

Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

dellus
Hey, that's a very good trick!
But keep in mind that in LibreCAD V2.1.3 you will lose the hatches (bug, solved in 2.2.0). Also you will have to take care that the new empty drawing has the same settings in Current Drawing Preferences.
So in further development of your trick, I had the thought, why not re-import to the same, but cleaned up drawing?
Instead of Copy, use Cut. Then, if you are lucky to have V 2.2.0 rc, you can delete all the layers, except 0, in one go. And then Paste back the contents including the used layers only.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

ivodorr@gmail.com
Hi, that's really better way. I will use it. Thanks a lot for your post.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

ivodorr@gmail.com
In reply to this post by Gary S
Hello Gary,
unfortunatelly the selection of more than one layers does not work for me.
I am using windows version of LibreCAD 2.0.11
I supose, based on the look of your dialog window, that you are using LibreCAD in Linux system.
Maybe the list of layers has more functions under Linux or there another glitch which I am not aware of.
If you know anything about it, please let me know.

Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

dellus
You have to use LibreCAD 2.2.0 (the latest is rc2) to select more than one layer.
Available here https://sourceforge.net/projects/librecad/files/Windows/NightlyBuilds/master/LibreCAD-Installer-2.2.0-rc2-1-g6dfb387c.exe/download
or if you are still on XP https://sourceforge.net/projects/librecad/files/Windows/NightlyBuilds/master.xp/LibreCAD-XP-Installer-2.2.0-rc2-1-g6dfb387c.exe/download
You may also try the portable version https://portableapps.com/node/63458
You can test and use this while keeping your current installation.
 
Reply | Threaded
Open this post in threaded view
|

Re: Remove the empty layers

ivodorr@gmail.com
Hello Dellus,
thanks for links. I have tested the portable version and the selection of more than one layers works. Thanks