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

lzwang26's profile - activity

2023-09-18 14:36:35 -0500 marked best answer Access the openstudio application measure path

Hi,

I am developing an openstudio measure. I want to get the measure local path "C:/Users/username/OpenStudio/Measures/measurename/measure.rb" by using commands in the measure method "run(model, runner, user_arguments)". However, when the measure is running by the openstudio application, the path I get (using Dir.pwd) is a template path (e.g. C:/Users/username/AppData/Local/Temp/osmodel-1694197536-7/resources/measures/xxx). Is there any way to get the measure local path "C:/Users/username/OpenStudio/Measures/measurename/measure.rb" in the run() method?

Thank you!

Best,

2023-09-18 14:36:35 -0500 received badge  Scholar (source)
2023-09-18 14:36:02 -0500 received badge  Supporter (source)
2023-09-18 14:35:56 -0500 commented answer Access the openstudio application measure path

@macumber and @Denis Bourgeois, thank you so much for the help from both of you! I have figured out how to do this by ma

2023-09-12 15:18:53 -0500 commented answer Access the openstudio application measure path

Hi Denis, thank you so much for your comments and help! I agree with you, if we instruct the user to do something first,

2023-09-11 16:17:30 -0500 received badge  Student (source)
2023-09-11 16:14:30 -0500 commented answer Access the openstudio application measure path

Hi macumber. Thank you so much for your answer! My case is a little special. I have a yaml file under the path "C:\Users

2023-09-10 10:56:44 -0500 asked a question Access the openstudio application measure path

Access the openstudio application measure path Hi, I am developing an openstudio measure. I want to get the measure loc