[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EnergyPlus_Support] EP Macro Eval

I am trying to understand the use of the #eval commands in the EP Macro auxiliary program,

I have copied the example directly from the Auxiliary Programs reference (pg 148):

##set1 x 0
##set1 x #eval[ x[]+1]

According the reference, x should be set to 0, and then redefined to 1 by the second command, but when I run this example, I get this error:

      #  64 # ##set1 x 0
      #  65 # ##set1 x #eval[ x[]+1]
  *ERROR***  **************** ===== ***********************************************************macro argument missing

Could anyone help me?  I am trying to take two macro definitions and define a third macro with the first two values:

##set1 Width[] 50
##set1 Length[] 40
##set1 Area[] #eval[Width[]*Length[]]

I feel like this should work.

Also any guidance as to combining parametric variables and ep macros would be appreciated (I think you can't combine them)  or alternatives to performing calculations on macros....


Jason K



Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:

The group web site is:

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe