<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>I'm trying to
automatically adjust my window size based on a global parameter called "Glazing
Percentage". The width of the window is fixed and the height is defined by
the following expression:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>4.47*(#PA("Glazing
Percentage")/0.4)</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>However, a large
glazing percentage leads to problems since the larger window takes up space in
the plenum. So I want to fix this by adjusting the Y coordinate of the
window. To do this, I tried creating the following
expression:</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>if (#PA("Glazing
Percentage") == 0.4)<BR>then #L("Y") = 4.37<BR>else #L("Y") = 4.37 -
(1.12*("#PA("Glazing Percentage) - 0.4))<BR>endif</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>When glazing
percentage is set to 0.4, the above expression sets Y to 0.00. As soon as
I change it to says 0.5, eQuest crashes. </FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>The math is
correct, but there's something wrong with my syntax. Can anyone please
help?</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers size=2>I've attached the
pd2 and inp files for reference.</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=144453718-19112008><FONT face=Univers
size=2>Luka</FONT></SPAN></DIV></BODY></HTML>