Hi, Jean
My last mail was not correct.
The same macro call name should not be in the same definition.
##DEF CO2_EMS_FOR_ZONES [ mmZone, mmZone1, zonenm2 ] =================
CO2_EMS_FOR_ZONES [ Zone1, , ] would give you the concatinated result lines.
Dr. Li To: EnergyPlus_Support@xxxxxxxxxxxxxxx From: jeannieboef@xxxxxxxxx Date: Thu, 15 Sep 2011 09:57:18 +0000 Subject: [EnergyPlus_Support] using macro to concatinate zoneprefix to variable name
Can anyone give me a small example of using the #eval and // to concatinate ZoneName with "otherVariable" in a #set1 or #def declaration?
Something like: ##DEF CO2_EMS_FOR_ZONES [ mmZone,mmZone,mmZone,mmZone,mmZone,mmZone,mmZone,mmZone,mmZone,mmZone ] EnergyManagementSystem:GlobalVariable, #EVAL[ CO2_EMS_FOR_ZONES [ mmZone ] // _CurrentCO2Concentration ], #EVAL[ CO2_EMS_FOR_ZONES [ mmZone ] // _CurrentCO2SP ], #EVAL[ CO2_EMS_FOR_ZONES [ mmZone ] // _CurrentDamperPos ]; __._,_.___ 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: http://www.energyplus.gov The group web site is: http://groups.yahoo.com/group/EnergyPlus_Support/ 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 __,_._,___ |