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 6 years ago

simular's avatar

updated 6 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
3

answered 6 years ago

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

Preview: (hide)
link

Comments

Thanks for the link!

simular's avatar simular  ( 6 years ago )
1

answered 6 years ago

simular's avatar

updated 6 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 6 years ago

Seen: 530 times

Last updated: Apr 09 '19