Fun with keyword expressions

5 posts / 0 new
Last post

Let's have some fun! Share your creative keyword expressions with the group!

One of the features of eQUEST that I most enjoy is the ability to write custom keyword expressions. For example, here's an expression for WINDOW:HEIGHT :
if(#SV(#P3S())>2) then 5.33
else 10.50 endif
-2*#L("FRAME-WIDTH")
The expression assigns different heights depending on which floor the window is on. (#P3S is the great-grandparent of the window. FLOOR-> SPACE-> WALL-> WINDOW.)
Note that you can use operators outside of If-then and switch statements. In this case, since WINDOW:HEIGHT is the height of the glazed part of the window, the expression subtracts twice the frame width after evaluating the if-then statement.

Your turn...

~Bill

William Bishop, PE, BEMP, BEAP, CEM, LEED AP
Senior Energy Engineer

[Pathfinder-EA-logo-2]T: (585) 698-1956 F: (585) 325-6005
bbishop at pathfinder-ea.com www.pathfinder-ea.com
134 South Fitzhugh Street
Rochester, NY 14608 [cid:image005.png at 01D5E0C8.899063C0] Ask me why Carbon Fee & Dividend may be right for you.

Bill Bishop's picture
Offline
Joined: 2012-02-25
Reputation: 7