<div dir="ltr"><div><div><div>Has anyone had any luck creating default user expressions for schedules?<br></div>I was able to get it to work for other fields but when trying to use the Switch function for schedules I am getting errors.<br></div>Any advice?<br><br></div>Thank you,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 5, 2017 at 10:25 PM, Aaron Powers via Equest-users <span dir="ltr"><<a href="mailto:equest-users@lists.onebuilding.org" target="_blank">equest-users@lists.onebuilding.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div lang="EN-US"><div class="m_-7039709998937579219gmail-m_5566097437395105365WordSection1"><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">To expand on Nick's trick below, I wanted to share why only the 1st 4 characters are returned by default and why his code works (this is mostly a guess from reverse-engineering the source code, but it's consistent with the way the actual program works).</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">Old versions of Fortran had no built-in character or string data types, so programmers had to use tricks to deal with them. This would have been true of the dialect of Fortran used in the original DOE2.1A, and so a form of the original technique used to deal with string literals persists in the code today. As a warning, this next part may give the mechanical engineers out there a headache... A single character is traditionally encoded in ASCII using a single byte. A byte is 8 bits, and the largest 8 bit number is 11111111 = 255, so you can encode 256 unique characters using a single byte. As an example, the btye 01100001 = 97 represents the character 'a' in ASCII. The smallest built-in data type in early Fortran was the integer (or float) which is encoded using 4 bytes. The trick used in DOE2 is to encode string literals as an array of 8 integers (or float), and since each integer contains 4 bytes (i.e. 4 characters), the entire string array represents a total of 8x4 = 32 characters. This is why there's a 32 character limit on string fields. So accessing the first element of this array by #L("C-ACTIVITY-DESC") or #L("C-ACTIVITY-DESC",0) returns the first 4 characters, </span></font><span style="font-family:calibri,sans-serif;font-size:14.6667px">#L("C-ACTIVITY-<wbr>DESC",1) returns the second 4 characters, and so on.</span></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">Now a little further into the weeds (this is more speculation into how it could be done rather than how it's actually done under the DOE2 hood). Consider the string 'abcd'. This can be encoded into a single integer by making the four bytes of the integer be the same as the 4 character's ASCII representation in sequence together. So the first byte is 97(</span></font><span style="font-family:calibri,sans-serif;font-size:14.6667px">01100001)</span><font face="calibri, sans-serif"><span style="font-size:14.6667px">, the second 98(01100010)</span></font><font face="calibri, sans-serif"><span style="font-size:14.6667px">, the third 99(01100011)</span></font><font face="calibri, sans-serif"><span style="font-size:14.6667px">, and the fourth 100(01100100). Also, in Fortran, integers are encoded in little-endian style which just means that we need to order the bytes in reverse order when constructing the integer. The entire integer in binary form is then </span></font><span style="font-family:calibri,sans-serif;font-size:14.6667px">01100100</span><span style="font-family:calibri,sans-serif;font-size:14.6667px">01100011</span><span style="font-family:calibri,sans-serif;font-size:14.6667px">01100010</span><span style="font-family:calibri,sans-serif;font-size:14.6667px">0<wbr>1100001.</span><span style="font-family:calibri,sans-serif;font-size:14.6667px"> </span><font face="calibri, sans-serif"><span style="font-size:14.6667px"> The value of this integer in decimal is 1684234849. So, in DOE2-Land, the number 1684234849 is equivalent to 'abcd'.</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">However, it appears that you can't access the integer representation of these four character 'words' in keyword expressions. For example:</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">if ("abcd" == </span></font><span style="font-family:calibri,sans-serif;font-size:14.6667px">1684234849) then ... produces an error.</span></p><p class="MsoNormal"><span style="font-family:calibri,sans-serif;font-size:14.6667px"><br></span></p><p class="MsoNormal"><span style="font-family:calibri,sans-serif;font-size:14.6667px">Also, you can't do arithmetic with the integer representation. Interestingly though, the '+' operator functions as a concatenate operator when dealing with string literals. This can be used to compare the first 4, 8, 12, ... characters of a string. For example, try the following code for the lighting power density of a space. This expression considers the first 8 characters when checking the C-ACTIVITY-DESC field. This could be expanded to check all 32 characters, although the code would get a little bloated.</span></p><p class="MsoNormal"><span style="font-family:calibri,sans-serif;font-size:14.6667px"><br></span></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">switch(#L("C-ACTIVITY-DESC",0) + #L("C-ACTIVITY-DESC",1))</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"> case "office": 1.1</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"> case "kitchen": 1.5</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"> case "restroom": 0.7</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"> default: 1.0</span></font></p><p class="MsoNormal"></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">endswitch</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">In this code, the result when C-ACTIVITY-DESC = "office" is 1.1, but the result when C-ACTIVITY-DESC = "office1" is 1.0.</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px">Aaron</span></font></p><p class="MsoNormal"><font face="calibri, sans-serif"><span style="font-size:14.6667px"><br></span></font></p><p class="MsoNormal" style="font-size:12.8px"><b><span style="font-size:11pt;font-family:calibri,sans-serif"><br></span></b></p><p class="MsoNormal" style="font-size:12.8px"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> Nicholas Caton [mailto:<a href="mailto:Nicholas.Caton@schneider-electric.com" target="_blank">Nicholas.Caton@schneid<wbr>er-electric.com</a>] <br><b>Sent:</b> Friday, March 03, 2017 4:04 PM<br><b>To:</b> Bishop, Bill <<a href="mailto:bbishop@pathfinder-ea.com" target="_blank">bbishop@pathfinder-ea.com</a>>; Chris Jones <Christopher.Jones@RWDI.com>; Michael Campbell <<a href="mailto:mcamp1206@gmail.com" target="_blank">mcamp1206@gmail.com</a>><br><b>Cc:</b> <a href="mailto:equest-users@onebuilding.org" target="_blank">equest-users@onebuilding.<wbr>org</a><br><b>Subject:</b> RE: [Equest-users] User-Defined Default Expressions<u></u><u></u></span></p></div></div><p class="MsoNormal" style="font-size:12.8px"><u></u> <u></u></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">Appending to this, while ("C-ACTIVITY-DESC") returns the first 4 characters by default, if you ever need to further distinguish inputs within spaces sharing the same/similar activity descriptors, you can also reference the 2<sup>nd</sup> set of 4 characters (or the 3<sup>rd</sup> set, or the 4<sup>th</sup> set…).<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">To do this, append the optional argument “,#” wherever you’d normally specify “C-ACTIVITY-DESC.” <u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">To build on the running example, say you had 2 tenants to distinguish in a building with “Retail” space, but they had two different occupancy densities. You could handle that by first adding to their descriptors, such as follows:<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px;margin-left:0.5in"><span style="font-size:11pt;font-family:calibri,sans-serif">Retail_–_Best Buy<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px;margin-left:0.5in"><span style="font-size:11pt;font-family:calibri,sans-serif">Retail_–_Home Depot<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">The first 4 characters for each case are the same: “RETA” (list position 0). The second set of 4 is “IL_–“ (list position 1). The third set is finally distinguishable: “_BES” and “_HOM” (list position 2).<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">From here you could either insert an if/then statement for the “Reta” case, or just nest another switch statement. Added some formatting for clarity, but <span style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow">highlighted</span>the new addition:<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> AREA/PERSON =<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)">{if(#SV(#L("ZONE-TYPE"))==2) then no_def else<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> if(#RV(#L("PEOPLE-SCHEDULE"))!<wbr>=0) then unused else<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> switch (#L("C-ACTIVITY-DESC"))<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> case "Reta": <span style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow">switch (#L("C-ACTIVITY-DESC",2))<u></u><u></u></span></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow"> case “_Bes” : 67<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow"> case “_Hom” : 67*2<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow"> default : 500<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125);background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:yellow"> endswitch</span><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"><u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> case "Lobb": 150<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> case "Clas": 100<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> default: 500<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> endswitch<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)"> endif<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:consolas;color:rgb(31,73,125)">endif}<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif">~Nick<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><div style="font-size:12.8px"><p class="MsoNormal"><span style="font-size:11pt;font-family:arial,sans-serif;color:rgb(58,122,70)"><img id="m_-7039709998937579219gmail-m_5566097437395105365_x0000_i1025" src="cid:image002.png@01D29439.320104E0" class="m_-7039709998937579219gmail-CToWUd" height="9" width="726"><u></u><u></u></span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:arial,sans-serif;color:rgb(58,122,70)">Nick Caton, P.E., BEMP</span></b><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(58,122,70)"><u></u><u></u></span></p><table class="m_-7039709998937579219gmail-m_5566097437395105365MsoNormalTable" style="width:543pt;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0" width="905"><tbody><tr><td style="width:172.3pt;padding:0in" valign="top" width="287"><p class="MsoNormal"><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"> Senior Energy Engineer</span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"> Regional Energy Engineering Manager<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"> Energy and Sustainability Services</span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"> Schneider Electric</span><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p></td><td style="width:218.3pt;padding:0in" valign="top" width="364"><p class="MsoNormal"><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(87,176,105)">D </span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"><a href="tel:(913)%20564-6361" value="+19135646361" target="_blank">913.564.6361</a> </span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(87,176,105)">M </span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"><a href="tel:(785)%20410-3317" value="+17854103317" target="_blank">785.410.3317</a> </span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(87,176,105)">F </span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)"><a href="tel:(913)%20564-6380" value="+19135646380" target="_blank">913.564.6380</a></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(87,176,105)">E </span><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><a href="mailto:nicholas.caton@schneider-electric.com" target="_blank"><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)">nicholas.caton@schneider-el<wbr>ectric.com</span></a><u></u><u></u></span></p></td><td style="width:152.4pt;padding:0in" valign="top" width="254"><p class="MsoNormal" style="text-align:right" align="right"><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(98,100,105)">15200 Santa Fe Trail Drive<br>Suite 204<br>Lenexa, KS 66219<br>United States</span><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p></td></tr><tr style="height:4pt"><td colspan="3" style="width:543pt;padding:0in;height:4pt" valign="top" width="905"><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(58,122,70)"><img id="m_-7039709998937579219gmail-m_5566097437395105365_x0000_i1026" src="cid:image003.png@01D29439.320104E0" class="m_-7039709998937579219gmail-CToWUd" height="49" border="0" width="722"><u></u><u></u></span></p></td></tr></tbody></table><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p></div><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><div style="font-size:12.8px"><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> Equest-users [<a href="mailto:equest-users-bounces@lists.onebuilding.org" target="_blank">mailto:equest-users-bounces@l<wbr>ists.onebuilding.org</a>] <b>On Behalf Of </b>Bishop, Bill via Equest-users<br><b>Sent:</b> Friday, March 03, 2017 12:24 PM<br><b>To:</b> Chris Jones <<a href="mailto:Christopher.Jones@RWDI.com" target="_blank">Christopher.Jones@RWDI.com</a>>; Michael Campbell <<a href="mailto:mcamp1206@gmail.com" target="_blank">mcamp1206@gmail.com</a>><br><b>Cc:</b> <a href="mailto:equest-users@onebuilding.org" target="_blank">equest-users@onebuilding.<wbr>org</a><br><b>Subject:</b> Re: [Equest-users] User-Defined Default Expressions<u></u><u></u></span></p></div></div><p class="MsoNormal" style="font-size:12.8px"><u></u> <u></u></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Mike,<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">You can start with the expression below. Paste only the text between the brackets if you are pasting within the interface. If pasting into the input file, this would go after “SET-DEFAULT FOR SPACE”. Like Chris said, the case statement names should be four characters or less. However, they are not case sensitive, so upper/lower case doesn’t matter.<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">~Bill<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"> AREA/PERSON =<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">{if(#SV(#L("ZONE-TYPE"))==2) then no_def else<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">if(#RV(#L("PEOPLE-SCHEDULE"))!<wbr>=0) then unused else<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">switch (#L("C-ACTIVITY-DESC"))<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">case "Reta": 67<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">case "Lobb": 150<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">case "Clas": 100<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">default: 500<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">endswitch<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">endif<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">endif}<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div style="font-size:12.8px"><p class="MsoNormal"><b><span style="font-size:10pt;font-family:"franklin gothic medium",sans-serif;color:black">William Bishop, PE, BEMP, BEAP, CEM, LEED AP </span></b><b><span style="font-size:10pt;font-family:"franklin gothic medium",sans-serif;color:rgb(0,102,0)">|</span></b><b><span style="font-size:10pt;font-family:"franklin gothic medium",sans-serif;color:black"> Pathfinder Engineers & Architects LLP<u></u><u></u></span></b></p><table class="m_-7039709998937579219gmail-m_5566097437395105365MsoNormalTable" style="width:394.8pt;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0" width="658"><tbody><tr style="height:13.45pt"><td style="width:258.45pt;padding:0in 5.4pt;height:13.45pt" width="431"><p class="MsoNormal" style="line-height:13.44px"><b><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:black">Senior Energy Engineer<u></u><u></u></span></b></p></td><td rowspan="6" style="width:136.35pt;padding:0in 5.4pt;height:13.45pt" width="227"><p class="MsoNormal" style="line-height:13.44px"><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:black"><img id="m_-7039709998937579219gmail-m_5566097437395105365Picture_x0020_4" src="cid:image004.jpg@01D29439.320104E0" class="m_-7039709998937579219gmail-CToWUd" height="38" border="0" width="56"> <img id="m_-7039709998937579219gmail-m_5566097437395105365Picture_x0020_2" src="cid:image005.jpg@01D29439.320104E0" class="m_-7039709998937579219gmail-CToWUd" height="39" border="0" width="46"><u></u><u></u></span></p></td></tr><tr style="height:4.55pt"><td style="width:258.45pt;padding:0in 5.4pt;height:4.55pt" valign="top" width="431"><p class="MsoNormal" style="line-height:13.44px"><span style="font-size:5pt;line-height:7px;font-family:arial,sans-serif;color:black"><u></u> <u></u></span></p></td></tr><tr style="height:9.8pt"><td style="width:258.45pt;padding:0in 5.4pt;height:9.8pt" valign="bottom" width="431" nowrap><p class="MsoNormal" style="line-height:13.44px"><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:rgb(31,73,125)">134 South Fitzhugh Street</span><span style="font-size:9pt;line-height:12.6px;font-family:calibri,sans-serif;color:rgb(31,73,125)"> </span><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:rgb(31,73,125)">Rochest<wbr>er, NY 14608<u></u><u></u></span></p></td></tr><tr style="height:12.4pt"><td style="width:258.45pt;padding:0in 5.4pt;height:12.4pt" valign="top" width="431"><p class="MsoNormal" style="line-height:13.44px"><b><i><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:rgb(0,32,96)">T: <a href="tel:(585)%20698-1956" value="+15856981956" target="_blank">(585) 698-1956</a></span></i></b><b><i><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(0,32,96)"> </span></i></b><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(31,73,125)"> <wbr> </span><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:rgb(31,73,125)">F: <a href="tel:(585)%20325-6005" value="+15853256005" target="_blank">(585) 325-6005</a></span><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:black"><u></u><u></u></span></p></td></tr><tr style="height:9.8pt"><td style="width:258.45pt;padding:0in 5.4pt;height:9.8pt" valign="top" width="431"><p class="MsoNormal" style="line-height:13.44px"><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(31,73,125)"><a href="mailto:wbishop@pathfinder-ea.com" target="_blank"><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif">bbishop@pathfinder-ea.com</span></a></span><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif;color:black"> <wbr> </span><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(31,73,125)"><a href="http://www.pathfinder-ea.com/" target="_blank"><span style="font-size:9pt;line-height:12.6px;font-family:arial,sans-serif">www.pathfinder-ea.com</span></a><u></u><u></u></span></p></td></tr><tr style="height:24.6pt"><td style="width:258.45pt;padding:0in 5.4pt;height:24.6pt" valign="top" width="431"><p class="MsoNormal" style="margin-top:3pt;line-height:13.44px"><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(31,73,125)"><img id="m_-7039709998937579219gmail-m_5566097437395105365Picture_x0020_5" src="cid:image006.png@01D29439.320104E0" alt="http://png-5.findicons.com/files/icons/977/rrze/720/globe.png" class="m_-7039709998937579219gmail-CToWUd" height="32" border="0" width="34"></span><span style="font-size:7.5pt;line-height:10.5px;font-family:calibri,sans-serif;color:rgb(0,176,240)">Carbon Fee and Dividend - simple, effective, and market-based.</span><span style="font-size:11pt;line-height:15.4px;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p></td></tr></tbody></table></div><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div style="font-size:12.8px"><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> Equest-users [<a href="mailto:equest-users-bounces@lists.onebuilding.org" target="_blank">mailto:equest-users-bounces@l<wbr>ists.onebuilding.org</a>] <b>On Behalf Of </b>Chris Jones via Equest-users<br><b>Sent:</b> Friday, March 03, 2017 12:52 PM<br><b>To:</b> Michael Campbell <<a href="mailto:mcamp1206@gmail.com" target="_blank">mcamp1206@gmail.com</a>><br><b>Cc:</b> <a href="mailto:equest-users@onebuilding.org" target="_blank">equest-users@onebuilding.<wbr>org</a><br><b>Subject:</b> Re: [Equest-users] User-Defined Default Expressions<u></u><u></u></span></p></div></div><p class="MsoNormal" style="font-size:12.8px"><u></u> <u></u></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Note, only the first 4 characters of the C-ACTIVITY-DESC field are recognized in user defined expressions. Therefore, if your UDF uses “RETAIL” as the test, it may fail because only “RETA” is used.<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Other than that, I suggest reviewing the BDLDFT.TXT file in the eQUEST 3-65 Data folder. It is full of example default expressions.<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><b><span style="font-size:8pt;font-family:arial,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></b></p><table class="m_-7039709998937579219gmail-m_5566097437395105365MsoNormalTable" style="font-size:12.8px;width:6.25in" border="0" cellpadding="0" cellspacing="20" width="750"><tbody><tr><td style="width:52.5pt;padding:0in" valign="top" width="88"><p class="MsoNormal"><a href="http://www.rwdi.com/assets/logos/RWDI-logo.gif" target="_blank"><span style="color:rgb(31,73,125);text-decoration:none"><img id="m_-7039709998937579219gmail-m_5566097437395105365Picture_x0020_1" src="cid:image007.jpg@01D29439.320104E0" alt="Title: RWDI - Description: RWDI logo" class="m_-7039709998937579219gmail-CToWUd" height="70" border="0" width="70"></span></a><span style="color:rgb(31,73,125)"><u></u><u></u></span></p></td><td style="width:363pt;padding:0in" valign="top" width="605"><p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:arial,sans-serif;color:rgb(0,94,184)">Christopher Jones, </span></b><b><span style="font-size:9pt;font-family:arial,sans-serif;color:rgb(0,94,184)">P.Eng. </span></b><span style="font-size:10.5pt;font-family:arial,sans-serif;color:rgb(153,153,153)">| </span><span style="font-size:10pt;font-family:arial,sans-serif;color:rgb(153,153,153)">Senior Energy Analyst</span><span style="font-family:arial,sans-serif;color:rgb(31,73,125)"><br></span><b><span style="font-size:9pt;font-family:arial,sans-serif;color:rgb(153,153,153)">RWDI</span></b><span style="font-size:9pt;font-family:arial,sans-serif;color:rgb(153,153,153)"><br>901 King Street West, Suite 400, Toronto, ON M5V 3H5 Canada<br>Tel: <a href="tel:(519)%20823-1311" value="+15198231311" target="_blank">(519) 823-1311 ext 2052</a><br><a href="http://www.rwdi.com/" target="_blank"><span style="color:rgb(153,153,153)">rwdi.com</span></a></span><span style="color:rgb(31,73,125)"><u></u><u></u></span></p></td></tr></tbody></table><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><b><span style="font-size:10pt;font-family:tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:tahoma,sans-serif"> Equest-users [<a href="mailto:equest-users-bounces@lists.onebuilding.org" target="_blank">mailto:equest-users-bounces@l<wbr>ists.onebuilding.org</a>] <b>On Behalf Of </b>Michael Campbell via Equest-users<br><b>Sent:</b> Friday, March 03, 2017 12:32 PM<br><b>To:</b> equest-users<br><b>Subject:</b> [Equest-users] User-Defined Default Expressions<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><u></u> <u></u></p><div style="font-size:12.8px"><div><div><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12pt">Hi eQUEST Users,<u></u><u></u></p></div><p class="MsoNormal">I'm trying to create default user expressions in an effort to auto-populate certain fields in my models.<u></u><u></u></p></div><p class="MsoNormal">I want to reference the activity description (C-ACTIVITY-DESC) have it automatically fill in fields such as Area/Person.<u></u><u></u></p></div><p class="MsoNormal">So for this example, I'm trying to make all spaces that have Activity Description of "RETAIL" to be populated with a Area/Person value of 67.<u></u><u></u></p></div><p class="MsoNormal">I've tried using the "Switch" function and if-then statements but haven't been able to get it to work.<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12pt">Any assistance is appreciated.<u></u><u></u></p></div><p class="MsoNormal">Thank you,<u></u><u></u></p></div><p class="MsoNormal">Mike Campbell<u></u><u></u></p></div><div style="font-size:12.8px"><div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:7pt"><hr align="center" size="3" width="100%"></span></div><p class="MsoNormal"><b><span style="font-size:7pt">RWDI - A Platinum Member of Canada's 50 Best Managed Companies</span></b><span style="font-size:7pt"> <br>This communication is intended for the sole use of the party to whom it was addressed and may contain information that is privileged and/or confidential. Any other distribution, copying or disclosure is strictly prohibited. If you received this email in error, please notify us immediately by replying to this email and delete the message without retaining any hard or electronic copies of same. Outgoing emails are scanned for viruses, but no warranty is made to their absence in this email or attachments. If you require any information supplied by RWDI in a different format to facilitate accessibility, contact the sender of the email, email <a href="mailto:solutions@rwdi.com" target="_blank">solutions@rwdi.com</a> or call <a href="tel:(519)%20823-1311" value="+15198231311" target="_blank">+1.519.823.1311</a>.<u></u><u></u></span></p><div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:7pt"><hr align="center" size="3" width="100%"></span></div></div><p class="MsoNormal" style="font-size:12.8px"><br>______________________________<wbr>______________________________<wbr>__________<br>This email has been scanned by the Symantec Email Security.cloud service.<br>______________________________<wbr>______________________________<wbr>__________<u></u><u></u></p><div style="font-size:12.8px"><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
Equest-users mailing list<br>
<a href="http://lists.onebuilding.org/listinfo.cgi/equest-users-onebuilding.org" rel="noreferrer" target="_blank">http://lists.onebuilding.org/<wbr>listinfo.cgi/equest-users-<wbr>onebuilding.org</a><br>
To unsubscribe from this mailing list send a blank message to <a href="mailto:EQUEST-USERS-UNSUBSCRIBE@ONEBUILDING.ORG">EQUEST-USERS-UNSUBSCRIBE@<wbr>ONEBUILDING.ORG</a><br>
<br></blockquote></div><br></div>