<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The BDL expression mechanism does not deal very well with keywords of
type "literal" (character string), but you CAN do string comparisons
like those you are attempting. The key is that the comparison must be
of exactly 4 characters, not 3 as in your test.<br>
For example, if SPACE:C-ACTIVITY-DESC is set to "Executive Office",
then (from
another SPACE keyword) #L("C-ACTIVITY-DESC") will
return the "first word" element of the C-ACTIVITY-DESC literal =>
the the first four characters "Exec". So, if you always do
comparisons of 4-character strings then expressions like this one
should work
fine. Note that this means
#L("C-ACTIVITY-DESC") for "Executive
Bathroom" would ALSO return/compare only the same first four characters
"Exec".<br>
<br>
Something else of interest - you can also do checks like this on
subsequent
sets of four characters as well (i.e. #L("C-ACTIVITY-DESC",<u><span
style="color: rgb(204, 0, 0);">1</span></u>) for "Executive Office"
will
return "utiv" (the second four charaters)), where the second #L()
function argument (1 in this example) is a 0-based array index.<br>
<u>HOWEVER</u>,
subsequent manual (& I suppose parametric) changes to
SPACE:C-ACTIVITY-DESC
will only track down & re-evaluate dependencies on the first four
characters of C-ACTIVITY-DESC, so while expressions referencing
subsequent sets
of four characters following the first expression creation or after
first
opening the project will evaluate properly, subsequent changes to
C-ACTIVITY-DESC
will NOT trigger the re-evaluation of expressions dependent on portions
of
C-ACTIVITY-DESC other than the first 4 characters.<br>
<br>
- Scott<br>
<br>
<br>
Eric Studer wrote:
<blockquote cite="mid:C2454B6B4FDF49A482E92A161805548B@Studer"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style></o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Hello,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Does anybody know how to
use the ‘Description’
field in the detailed edit Space Properties/Basic Specs tab within user
defined
default expressions?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">This would be <i><span
style="font-style: italic;">EXTREMELY</span></i>
handy to know how to use. I have tried the following approach to
convert
spaces described as ‘APT’ with the ‘OCC APTTEST YEAR’
occupancy schedule:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">IF (#L("C-ACTIVITY-DESC")
== "APT") THEN<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">#SI("OCC APTTEST YEAR",
"SPACE",
"PEOPLE-SCHEDULE" )<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">ELSE #SI("OCC APT YEAR",
"SPACE",
"PEOPLE-SCHEDULE" )<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">ENDIF<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">I have also tried to
define the activity description as a
symbol table index (#SI), but to no avail. Is the problem the use of
#L
in conjunction with a name beginning with ‘C-‘?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Has anybody successfully
used the Description field in this
way?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;">Eric<o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><u><font face="Times New Roman" size="2"><span
style="font-size: 10pt;">
</span></font></u><o:p></o:p></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="2"><span
style="font-size: 10pt;">Eric Studer, PE, LEED AP<br>
DMI<br>
<st1:Street w:st="on"><st1:address w:st="on">35 Walnut Street</st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on">Wellesley</st1:City>, <st1:State
w:st="on">MA</st1:State> <st1:PostalCode w:st="on">02481</st1:PostalCode></st1:place><br>
Ph: (781) 431-1100 ext 12<br>
Fax: (781) 431-1109<br>
e-mail: <st1:PersonName w:st="on"><a class="moz-txt-link-abbreviated" href="mailto:estuder@dmiinc.com">estuder@dmiinc.com</a></st1:PersonName></span></font><o:p></o:p></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></span></font></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Equest-users mailing list
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/equest-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/equest-users-onebuilding.org</a>
To unsubscribe from this mailing list send a blank message to <a class="moz-txt-link-abbreviated" href="mailto:EQUEST-USERS-UNSUBSCRIBE@ONEBUILDING.ORG">EQUEST-USERS-UNSUBSCRIBE@ONEBUILDING.ORG</a>
</pre>
</blockquote>
</body>
</html>