<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
HI Everyone,</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I have asked Claude AI for some assistance in debugging the code, this is my first time using AI in anger. I was pointed in the direction of Claude AI by the creator of the new "Disco" cave surveying device this weekend.</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
We passed a few roadblocks and Claude tried to use pencircle, but in the end after generating some more bits of code, we decided on the below.</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
It suggests rather than copy and pasting to type out the code manually and also it seems to love Notepad++ and doesn't really know kate texteditor or somehow prefers Notepad++.</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
The below code does work for one line in one th2 file when generated alongside the rest of the cave. Whether this will generate correctly I cannot be sure when I convert all line walls to l_u_wall.</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
layout local</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
code metapost</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
def l_u_wall (expr P)=</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
T:=identity;</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
if path P:</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
if known(ATTR_color):</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
draw P withpen PenA withcolor scantokens(ATTR_color);</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
else:</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
draw P withpen PenA;</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
fi;</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
fi;</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
enddef;</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
 initsymbol("l_u_wall");</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
endcode</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
endlayout</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Remember in th2 you need:</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Type u:wall</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Options: -clip off -attr color "(0, 0.5, 0)"</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Or</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
-clip off -attr color green</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div class="elementToProof" id="Signature">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div class="elementToProof" id="divtagdefaultwrapper">
<div style="direction: ltr; color: rgb(0, 0, 0);" class="elementToProof"><span style="font-family: Arial; font-size: 16px;">Regards,<br>
Alastair Gott.<br>
<br>
AlastairGott@hotmail.com,<br>
M: 07931779380.</span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></div>
</div>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> Therion <therion-bounces@speleo.sk> on behalf of alastair gott <alastairgott@hotmail.com><br>
<b>Sent:</b> 01 March 2026 16:14<br>
<b>To:</b> Therion Mailing List <therion@speleo.sk><br>
<b>Subject:</b> Re: [Therion] Colored Lines Based On Attributes</div>
<div style="direction: ltr;"> </div>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
HI Everyone,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have tried again but now at full cave level it doesn't work, it does however work at small scales such as individual th2/thconfig. So the scaling up to full cave survey is causing the issue, probably as well as some of the code. Can anyone assist.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The below code for thconfig currently is:</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
layout local</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
code metapost</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
def l_u_wall (expr P)=</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
T:=identity;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        if known(ATTR_color):</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            pickup PenA;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            draw P withpen PenA withcolor scantokens(ATTR_color);</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
      fi;   </div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
enddef;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
 initsymbol("l_u_wall");</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
endcode</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
endlayout</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
####</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have been pointed to chapter 27 of this link by the config window, I will need to do some looking into this.
<a data-auth="NotApplicable" originalsrc="https://tex.org.uk/systems/knuth/dist/mf/mfbook.tex" class="x_OWAAutoLink" id="OWAb964fd2b-13bf-0249-721c-4631c63fe55d" href="https://tex.org.uk/systems/knuth/dist/mf/mfbook.tex">
Tex.org.uk/systems/knuth/dist/mf/mfbook.tex</a></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
##error message##</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
>> ___________pickup</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
! Isolated expression.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<to be read again></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                   pencircle</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
PenA->pencircle</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
               .scaled(u/10)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l_u_wall->...wn(ATTR_color):___________pickup.PenA</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                                                  ;____________draw(EXPR0)wi...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l.10992 ))</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
          ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I couldn't find an `=' or `:=' after the</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
expression that is shown above this error message,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
so I guess I'll just ignore it and carry on.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
! Extra tokens will be flushed.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<to be read again></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                   pencircle</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
PenA->pencircle</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
               .scaled(u/10)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l_u_wall->...wn(ATTR_color):___________pickup.PenA</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                                                  ;____________draw(EXPR0)wi...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l.10992 ))</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
          ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've just read as much of that statement as I could fathom,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
so a semicolon should have been next. It's very puzzling...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
but I'll try to get myself back together, by ignoring</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
everything up to the next `;'. Please insert a semicolon</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
now in front of anything that you don't want me to delete.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
(See Chapter 27 of The METAFONTbook for an example.)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
>> ____________draw</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
! Isolated expression.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<to be read again></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                   (path)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l_u_wall->...__pickup.PenA;____________draw(EXPR0)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                                                  withpen.PenA.withcolor.sca...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l.10992 ))</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
          ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I couldn't find an `=' or `:=' after the</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
expression that is shown above this error message,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
so I guess I'll just ignore it and carry on.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
! Extra tokens will be flushed.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<to be read again></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                   (path)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l_u_wall->...__pickup.PenA;____________draw(EXPR0)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                                                  withpen.PenA.withcolor.sca...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l.10992 ))</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
          ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've just read as much of that statement as I could fathom,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
so a semicolon should have been next. It's very puzzling...</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
but I'll try to get myself back together, by ignoring</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
everything up to the next `;'. Please insert a semicolon</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
now in front of anything that you don't want me to delete.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
(See Chapter 27 of The METAFONTbook for an example.)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
>> _____fi</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
! Isolated expression.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<to be read again></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                   ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
l.10992 ))</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
          ;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I couldn't find an `=' or `:=' after the</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
expression that is shown above this error message,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
so I guess I'll just ignore it and carry on.</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
[31] [32] (./mptextmp.mp) [33] )</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
(end occurred when if on line 10992 was incomplete)</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_Signature">
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_divtagdefaultwrapper">
<div style="direction: ltr; font-family: Arial; font-size: 16px; color: rgb(0, 0, 0);">
Regards,<br>
Alastair Gott.<br>
<br>
AlastairGott@hotmail.com,<br>
M: 07931779380.</div>
</div>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_divRplyFwdMsg">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> Therion <therion-bounces@speleo.sk> on behalf of alastair gott <alastairgott@hotmail.com><br>
<b>Sent:</b> 01 March 2026 13:26<br>
<b>To:</b> Therion Mailing List <therion@speleo.sk><br>
<b>Subject:</b> [Therion] Colored Lines Based On Attributes</div>
<div style="direction: ltr;"> </div>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
HI Everyone,</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Follow up on this thread from 17 years ago. <a data-auth="NotApplicable" originalsrc="https://mailman.speleo.sk/pipermail/therion/2009-September/002633.html" title="https://mailman.speleo.sk/pipermail/therion/2009-September/002633.html" class="OWAAutoLink" id="OWAbdab7678-2307-8980-5c34-90971d38d4b6" href="https://mailman.speleo.sk/pipermail/therion/2009-September/002633.html">
https://mailman.speleo.sk/pipermail/therion/2009-September/002633.html</a></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We have tweaked the code, with Andrews help. To make it work</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In <b>th2/Lines:</b></div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Type u:wall</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Options: -clip off -attr color "(0, 0.5, 0)"</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Or</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-clip off -attr color green</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In <b>thconfig</b>:</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
layout local</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
code metapost</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
def l_u_wall (expr P)=</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
T:=identity;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
        if known(ATTR_color):</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            pickup PenA;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            draw P withpen PenA withcolor scantokens(ATTR_color);</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
      fi;   </div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Enddef;</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
 initsymbol("l_u_wall");</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
endcode</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
endlayout</div>
<div style="direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>