<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi Martin<o:p></o:p></p><p class=MsoNormal>Yes, a regex is described on the wiki <a href="https://therion.speleo.sk/wiki/tips?s%5b%5d=empty#checking_and_erasing_empty_objects_in_th2_files">https://therion.speleo.sk/wiki/tips?s[]=empty#checking_and_erasing_empty_objects_in_th2_files</a><o:p></o:p></p><p class=MsoNormal>I use it from time to time when I feel the need.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It does not find empty scraps however, probably because our empty scrap definitions are quite busy.  For example;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>scrap IH-InceptionPlan-s2 -projection plan -station-names ih @ih -author 2011.02.23 "A Nonymous" -scale [-128.0 -128.0 10718.5511811 -128.0 0.0 0.0 275.5024 0.0 m]<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endscrap<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If anyone is clever enough to improve the regex, please do.<o:p></o:p></p><p class=MsoNormal>Although, because the empty scraps usually come from the particular way I use TopParser, there is almost always a maximum of one per th2 file. It is always at the end of the file, so using a semi-automated method of finding them within the file is unnecessary, if one is disciplined enough to check each file when the drawing is ‘finished’, or if, as there is now, a feature in Therion that (indirectly) highlights their existence.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However adding a Therion log entry for each empty object would be helpful.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>Martin Sluka via Therion<br><b>Sent:</b> Friday, 28 June 2019 23:55<br><b>To:</b> List for Therion users <therion@speleo.sk><br><b>Cc:</b> Martin Sluka <martinsluka@mac.com><br><b>Subject:</b> Re: [Therion] maps on off feature characteristics<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>28. 6. 2019 v 12:16, Bruce Mutton <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>>:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>There seems to be a bug regarding map altitudes in all cases, and scrap altitudes where the scraps are empty.  On the other hand it is a good way to highlight the existence of empty scraps!<o:p></o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Several years ago there was publish a regular expression for removing empty objects from .th2 files here. Is it complicated to add check for empty object to compilation routine?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Martin  Sluka<o:p></o:p></p></div></div></body></html>