[Bldg-sim] User Input Expression

Robby Oylear robbyo at rushingco.com
Tue Jun 17 16:16:38 PDT 2008


To access a parent parameter use the command #P.  To access a local
parameter use the command #L.  Also, global parameters are referenced by
the #PA command.  The errors you describe are because the name of the
parameter you are trying to reference isn't EXTERIOR-WALL:HEIGHT, it's
just HEIGHT.

 

Try this:

 

{#P("HEIGHT")*#P("WIDTH")*#PA("East Wall Percent Glass")/#L("HEIGHT")}

 

If that doesn't work let me know, as I just typed that up on the fly.

 

Robby Oylear

Mechanical Engineer

direct: 206.788.4571

cell: 206.354.2721

 <http://www.rushingco.com> www.rushingco.com

  _____  

From: bldg-sim-bounces at lists.onebuilding.org
[mailto:bldg-sim-bounces at lists.onebuilding.org] On Behalf Of Jeremy
McClanathan
Sent: Tuesday, June 17, 2008 4:08 PM
To: bldg-sim at lists.onebuilding.org
Subject: [Bldg-sim] User Input Expression

 

Hello,

 

It would be greatly appreciated if someone would provide some advice on
how to create a user input expression.  In order to easily manipulate the
percent glass of a building in the detailed interface, I would like to
create an expression that sets window width based on a global parameter
for percent glass I created.  To accomplish this, I right click on the
width input cell and select "Edit/View User Expression.", then enter the
following code I came up with based on what I have been reading in the
DOE-2 help files.

 

(PARENT( EXTERIOR-WALL:HEIGHT ) *

 PARENT( EXTERIOR-WALL:WIDTH ) *

 PARAMETER("East Wall Percent Glass")) /

LOCAL( HEIGHT )

 

This does not work.  Below are the errors that the above expression
generate.

 

 

Expression Parsing Error: Invalid BDL Keyword Function Argument
'EXTERIOR-WALL:HEIGHT'

Expression Parsing Error: Invalid BDL Keyword Function Argument
'EXTERIOR-WALL:HEIGHT'

Expression Parsing Error: Invalid BDL Keyword Function Argument
'EXTERIOR-WALL:HEIGHT'

 

I have tried several variations of this expression with no luck.  

 

Thank you in advance for any advice you can provide.

 

Jeremy

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/bldg-sim-onebuilding.org/attachments/20080617/d5e66f6f/attachment-0001.htm>


More information about the Bldg-sim mailing list