Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Access eQuest macro processor via command line?

asked 2019-03-15 14:49:41 -0500

simular's avatar

updated 2019-04-09 14:43:37 -0500

I have some BDL input files (*.INP) with heavy macro usage (##include, ##set1). When I load one in eQuest into a new project, it runs the macro processor and saves the pre-processed INP file with my new project name. Then I can see how all the macros evaluated.

I want to know if there is a way to achieve this same effect via command line or DLL calls, that is, without opening eQuest GUI to create a new project. This way I can check how my macros were processed, edit the pre-processed BDL code if I like, and run the file with DOE2 command line.

To clarify the original question, I want the result to be a new INP file that can be opened directly with eQuest.

Any ideas?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2019-03-18 06:58:09 -0500

Yes, download DOE-2.2 or DOE-2.3 from http://doe2.com/DOE2/index.html and follow the installation and execution instructions.

edit flag offensive delete link more

Comments

Thanks for the link!

simular's avatar simular  ( 2019-03-28 19:38:05 -0500 )edit
1

answered 2019-03-28 19:37:39 -0500

simular's avatar

updated 2019-04-08 20:07:38 -0500

After focusing on the *.BDL output files, I started to notice a file fort.22. This looks similar ... I found there was a statement like this halfway through my BDL:

##write

Evidently, I needed to put this at the entry point to my program, ie. the beginning of the INP file. The fort.22 file has a clean version of the BDL output file. Aside from line numbers in the first few columns, I think is exactly what I'm looking for.

On second look: This is still not correct, or perhaps there is a bug with DOEBDL. My BDL output file will show keyword expressions, a la {...}. However, in the fort.22 output file, these expressions are replaced with just the open curly brace, {, with no inner content. I also get snippets of library in unexpected places.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2019-03-15 14:49:41 -0500

Seen: 414 times

Last updated: Apr 09 '19