I would like to bring your attention to a new Script 'Add-on' tool which Andrew has created. This new tool belongs to the Modification tool-set in QCAD.http://www.ribbonsoft.com/en/qcad-add-ons
This new Purge tool purges all unused layers and block definitions in a drawing. Added to menu Modify - Purge.
To add the tool quite simply download the zip file and copy and paste the 'Purge' folder (which contains the script files, i.e. Purge zip > Scripts > Modify > Purge folder ) into the QCAD > Scripts > Modify folder.
*Note - you may need to apply permissions to run the script!
1. Navigate to the QCAD installation files, C. Drive > Program files > QCAD folder.
2. 'Right - click' the QCAD folder and choose the Properties option.
3. Select Security tab.
4. Select Users (your name PC\Users).
5. Click on Edit, click on Full control -click on Apply and OK.
This should set the permissions to run the script.An example of where this tool may be useful
Here is an example of a Topography file that I occasionally get to 'clean up' for laser cutting (etching/scoring for architectural site map).
As it is at the moment it contains 183 layers and 454 Block definitions - too much for what I need!
So... after selecting the Block definitions and exploding them, I can now use the new Purge tool from the Modify tool-set (drop down menu) to clean things up.
The resultant purge leaves me with only 35 layers and no blocks -brilliant, a much lighter file for me to use. Now I can select everything and move all entities onto just one layer, change the line weight ready for laser cutting.
Of course this is just my example, this tool will undoubtedly be useful for all types of drawings where you can just select this Purge tool and it will dynamically delete all your unused layers and block definitions any time!