Re: How to resolve hundreds of unwanted blocks?
Posted by perepujal on Feb 07, 2025; 12:45am
URL: https://forum.librecad.org/How-to-resolve-hundreds-of-unwanted-blocks-tp5726355p5726395.html
As a last ressource, one can try to edit the dxf in a text editor, or with an automatic processor like sed, of course after having backed up it
one just need to rename all ocurrences of "blockname-0" "blockname-1" etc to "blockname"
For example, with sed one could run
cat file.dxf | sed "s/block name-.*/block name/" > processedfile.dxf
should rename any block name-whatever to just block name in just one run and put the result in a file called "processedfile.dxf"
This works fine in a small dxf I made for testing, hope it works too for more complex drawings
HTH
Pere