First time here? Check our help page!
2

PAT 2 log file location

I'm looking into using scripting to run the analysis on an OSServer. I followed JS files and been able to boil it down to this line which runs the analysis. I noticed there're log after every command and all of that should be stored in a file somewhere. For that line specifically, it's followed by if (vm.Message.showDebug()) vm.$log.debug('FULL run_analysis command: ', full_command);

My questions are:

  1. where can I find the log file which shows the full_command (I installed PAT as part of the latest 2.9 OS installer)

  2. What's the best way to use scripting to automate the workflow and bypass PAT?

    2.1 Create project Json/Zip

    2.2 Run analysis on already started server

Thanks

Abekhit's avatar
31
Abekhit
asked 2020-04-22 12:09:27 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-04-23 14:42:51 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

@Abekhit this isn't something that we publicly support at all, but I have setup a repository that shows workflow that converts OSW to OSA json and sets up the ZIP file as well. The bottom of the readme shows how run the meta-CLI which will run an OSA on an already running server https://github.com/DavidGoldwasser/os...

Note, that PAT does need to be installed, and, unless you enter full path in the command line, you need to setup environmental variable, or on mac line in .bash_profile that looks like this export PATH="/Applications/OpenStudio-2.9.1/ParametricAnalysisTool.app/Contents/Resources/OpenStudio-server/bin":$PATH

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2020-04-23 12:05:42 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks @david-goldwasser. I want to create project using PAT the first time then edit/tweak it as needed. If we expanded scope, we'll use OSW2OSA.

Abekhit's avatar Abekhit (2020-05-06 08:29:51 -0500) edit
add a comment see more comments
1

Changed the console log level to Verbose and info and debug were printed. The window on the right is from view > Toggle Developer Tools.

image description

Abekhit's avatar
31
Abekhit
answered 2020-05-06 08:27:49 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments