Hi, Jean
As the result want is a variable name, the quotes marks need to be removed. They can be removed quite easily using 'find' and 'replace'. One trick is to add another uniq character in the macro, say, #[**one//two**]. So "**onetwo**" have the unique prefix and suffix. "** and **" can be removed by two global find and replace. There are two levels of errors in the error message. One in the macro expansion and one on the usage. The first warning say that the expanded names are being deleted in the IDF processing. The last warning seems to say this was not the case. The length is another condition. The length limits for macro literals are given in the Auxiliary Manual, I think. 32 and 128 are the two numbers I usuallly try to use as length limits in general. Dr. Li To: EnergyPlus_Support@xxxxxxxxxxxxxxx From: jeannieboef@xxxxxxxxx Date: Fri, 16 Sep 2011 08:01:37 +0000 Subject: [EnergyPlus_Support] Re: using macro to concatinate zoneprefix to variable name
Hi Richard and Dr. Li,
Thanks for the replies. The concatination turns the string into a literal so I get from #[mmZone // _CC] , -->expands--> "PavilionS:PavilionS_CC", note the quotation marks...this is not the case for the normal case like mmZone MDF , -->expands--> PavilionS:PavilionS MDF , Q1) does this matter? Q2) I get an error (see below)... I guess this means i need to shorten my zone names, right? ** Warning ** IP: IDF line~10005 Objects="Output:Reports" have been deleted from the IDD. Will be ignored. ************* IDF Context for following error/warning message: ************* Note -- lines truncated at 280 characters, if necessary... ************* Only the comment character (!) on a line is shown -- nothing following that. ************* 10762 EnergyManagementSystem:Program, ************* 10763 "Underground:Basement_CMMPr", ! ************* 10764 SET "Underground:Basement_CC" = "Underground:Basement_CS", ************* 10765 SET "Underground:Basement_CCSP" = "Underground:Basement_CSPS", ************* 10766 SET "Underground:Basement_CDP" = "Underground:Basement_ZDCS", ************* 10767 IF ("Underground:Basement_CC" > "Underground:BasementCCSP")&& ("Underground:Basement_ZDCS" < 0.9) , ************* 10768 SET "Underground:Basement_ZDC" = "Underground:Basement_ZDCS" + 0.1, ************* 10769 ELSEIF ("Underground:Basement_CC" <= "Underground:Basement_CCSP")&& ("Underground:Basement_ZDCS" >= 0.0), ** Warning ** IP: IDF line~10769 Alpha Argument length exceeds maximum, will be truncated=ELSEIF ("Underground:Basement_CC" <= "Underground:Basement_CCSP")&& ("Underground:Basement_ZDCS" >= 0.0) ** ~~~ ** Will be processed as Alpha=ELSEIF ("UNDERGROUND:BASEMENT_CC" <= "UNDERGROUND:BASEMENT_CCSP")&& ("UNDERGROUND:BASEMENT_ZDCS" >= __._,_.___ 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 __,_._,___ |