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

Pouya Kary's profile - activity

2021-09-05 13:48:43 -0600 commented question Do you have any history of breaking changes in IDF versions?

@bonnema V3 of the IDF format. In the beginning of of the IDF is always the Version object which since EnergyPlus is cur

2021-08-24 11:58:52 -0600 edited question Do you have any history of breaking changes in IDF versions?

Do you have any history of breaking changes in IDF versions? Hi I'm working on a tool for IDF and I have support for V3,

2021-08-24 11:44:22 -0600 asked a question Do you have any history of breaking changes in IDF versions?

Do you have any history of breaking changes in IDF versions? Hi I'm working on a tool for IDF and I have support fer V3,

2021-08-23 19:38:57 -0600 commented question OpenStudio-Standards won't load

@macumber @ljbrackney I've been asked about this and been wondering after this years, what is the state of possibly def

2021-08-23 19:35:34 -0600 received badge  Popular Question (source)
2019-07-10 12:21:25 -0600 received badge  Taxonomist
2018-04-10 03:11:44 -0600 edited question [NOT A QUESTION] gbXML community has a problem with signing-in

[NOT A QUESTION] gbXML community has a problem with signing-in Hi everyone! I wanted to join the gbXML community and I

2018-04-09 15:54:11 -0600 edited question [NOT A QUESTION] gbXML community has a problem with signing-in

[NOT A QUESTION] gbXML community has a problem with signing-in Hi everyone! I wanted to join the gbXML community and I

2018-04-09 15:49:59 -0600 asked a question [NOT A QUESTION] gbXML community has a problem with signing-in

[NOT A QUESTION] gbXML community has a problem with signing-in Hi everyone! I wanted to join the gbXML community and I

2016-07-15 21:46:27 -0600 asked a question Thermostat won't set on OpenStudio 10.11 win64

Hi everyone. I've missed this place for some time :D

I have a copy of a OpenStudio 10.11 x64 on a Windows 10 and SketchUp Make 2016. Everything seems to be fine expect the fact that in the Inspector window, thermostat setting is disabled and can't be changed.

I did try to change that via the space settings tool but what happens is that if the model only contain one space and hence one thermal zone or two spaces and thermal zones with no adjacency the thermostat may be set with the space settings tools but when you have spaces with adjacency, when you change that setup with space settings it won't be applied.

So the question here is, Is this a bug, or change in policy?

Thanks a lot.

2016-04-12 18:09:34 -0600 marked best answer How to use OpenStudio model in a SketchUp Plugin?

Before I even begin to ask there is this thing that I've been asking too many questions and well I wanted to thank you all for the generous time you put to answer all those questions.

I've been developing a software for evaluating a standard. And that has been developed from a very simple code into a very giant one and well because we wanted to contain OpenStudio compatibility I wrote it as an OpenStudio/SketchUp plugin and that actually was good at first. But the problem now is there are a lot of tools (A OpenStudio/SketchUp user script, A web tech based result explorer and a SketchUp plugin for editing thermal bridges and a lot of other small stuff). And for now there too much of problems with this. (I have to develop my own installers and a updater outside of SketchUp each for both Mac and Windows, Also I need some protocols to connect languages and data files and SketchUp web dialogs seems to be a bit of unstable inside the OpenStudio user scripts)

So it actually would be very good to be a bit OpenStudio independent and gather all those stuff into one SketchUp plugin. the only problem is I don't know how to access the OpenStudio plugin features from another plugin. Is it even possible?

Thanks a lot!

2016-04-12 18:08:31 -0600 marked best answer Where to put scripts?

I'm very new to OpenStudio, and I wanted to know where do you put your SketchUp UserScripts?

I didn't find anything on the documentations and so on. I've tried the ordinary SketchUp ruby plugin way but it didn't work.

So where do you put the ruby UserScripts in Mac so you can load them?

2016-03-14 13:27:38 -0600 commented answer How to get the SketchUp group associated with the OpenStudio Space?

@macumber actually unless you add the APIs for thermal bridges which since they're not implemented in energy plus you can't add them either hence remains no other way than these super crazy ones :|

2016-03-13 13:15:49 -0600 asked a question How to get the SketchUp group associated with the OpenStudio Space?

As always thanks a lot, mostly you Dan and David for your always supporting answers :D

I have a really huge problem going on. I want my software to compute thermal bridges hence I have implemented an editor in SketchUp for applying Psi-value to SketchUp Edge objects. Thanks to OpenStudio::Plugin.model_manager.model_interface.openstudio_model.getSurfaces[0].drawing_interface.entity that dear Dan showed me in here I can get edges of surfaces.

However the problem is for storing the data I can't use the SketchUp entity ID as they are temporary and change with each load (very horrible idea by SketchUp by the way...) so I have to make a key myself by hashing the position of the start and end of the edges.

The problem starts where these positions seems to be local within the groups. So my question is how do you get the global position of edges in the OpenStudio plugin itself? or do you have any suggestions.

2015-11-20 03:17:22 -0600 commented question OpenStudio-Standards won't load

@macumber thanks a lot! Sorry that I ask too much!

2015-11-20 03:16:18 -0600 commented question OpenStudio-Standards won't load

@ljbrackney actually I have fixed many stuff with the generator and my version works fine and I made a pull request (it's not something important, I just made it work on mac and added error handling when need also formatted the code so I could read. the pull request is still open. and generator works fine here) What I didn't know was the what @macumber just said. And I think sooner or later we have to have an OpenStudio fork so why not... Standards actually is not a risk. We know this and will update in parallel with the original repo.

2015-11-17 09:27:04 -0600 asked a question OpenStudio-Standards won't load

In the past few weeks we've been creating our country's standard file (openstudio-standards) based on the NREL's OpenStudio Standards (the fork now is: BHRC standards.)

The generator builds the file successfully and then tests goes without error but when I replace the JSON files of OpenStudio with the one I have generated OpenStudio loads non of them and the Inspector loads empty.

What should I do?

2015-10-27 03:12:42 -0600 asked a question I can't find the path to openstudio-standards.json

Hi, I hope that you're having a very nice day.

Prior to this question I asked this one: How to load custom OpenStudio-Standards JSONs?

I tried David's way but we changed our style to be fully independent from ASHRAE. So we wanted to have our own Materials and Constructions, etc. So this is now efficient to just replace the openstudio-standards.json. I have replaced the opens in:

/Applications/OpenStudio 1.9.0/Ruby/openstudio/sketchup_plugin/user_scripts/On Demand Template Generator/resources

As well as:

/Applications/OpunStudio 1.9.0/Ruby/openstudio/sketchup_plugin/user_scripts/Space Type And Construction Set Wizard/resources

But turned out that was just for the scripts not the whole plugin. I can't find the actual source, the one that os plugin loads when it starts?

2015-09-30 15:16:24 -0600 marked best answer Measure coloring PlanarSurfaces?

Thanks as always for all the kind answers.

I was wondering if I could color the PlanarSurfaces with the colors I want. I was reading the OpenStudio Plugin's code and I'm really lost there. But I really don't know how to change the colors? At first I thought

PlanarSurface.outside_color = Sketchup::Color.new (255, 255, 255, 1.0)

Would work but well it's not and then I thought I should access it via the entity way:

if drawing_interface = space.drawing_interface
    if entity = drawing_interface.entity
        entity.visible = false
    end
end

But it doesn't work there either. So the question is how does one fills the PlanarSurfaces with the desired color?

Thank you as always. Your answers helped me so much till now

2015-09-30 15:16:22 -0600 marked best answer Where can I download the C# OpenStudio.dll?

I've been searching around but I didn't find the c-sharp binding for the openstudio anywhere on the web that is official or so. Where do you host a download link that is always updated?

2015-09-20 04:24:04 -0600 answered a question How to Share Data Between Measures in OpenStudio

In a normal Ruby environment, All of the codes will be loaded to the top-most namespace of one session. If you create an object there it will be easily accessible to any measure. Only thing that would happen is the main namespace will be a bit polluted. I don't know how PAT or OS loads their files. If they load measures one at a time and make a session for each of them, That would makes it impossible and you have no choice but creating a shared temp file but give it a try. In case it works it will be the easiest way possible.

2015-09-08 15:10:41 -0600 commented answer How to load custom OpenStudio-Standards JSONs?

Well that was very helpful. But I think it's very good if you add the JSON path to the preferences so this entire code be not rewritten. I will play with it and ask for more if needed. Thanks a lot

2015-09-08 13:12:13 -0600 commented answer How to load custom OpenStudio-Standards JSONs?

@macumber, @david-goldwasser and @aparker nothing special, We just want the SketchUp pluging's inspector values (materials, constructions...) to be changed to our country-specific ones.

2015-09-08 13:09:51 -0600 commented question How to load custom OpenStudio-Standards JSONs?

@aparker: IR-Code19.

2015-09-06 10:16:16 -0600 asked a question How to load custom OpenStudio-Standards JSONs?

We don't use ASHRAE and what we want is our own standard in OpenStudio. Thanks to the good nature of it it's easily possible via the openstudio-standards. However I don't know where should I put the result JSON file or if there must be more steps.

2015-08-11 01:48:34 -0600 marked best answer How to know if OpenStudio Plugin opens or saves a file

I have a plugin that uses OpenStudio model and then I have my own system for thermal bridges. Now I have to save my external info in a separate file. It would be really cool if there be an event system in the OpenStudio plugin so I can know if the model is loaded or saved so I can load/save my own. I think I can do this by monkey-patching the main save and load functions but I want to know if there is any better way far that

2015-08-10 16:33:34 -0600 commented question How to know if OpenStudio Plugin opens or saves a file

@__AmirRoth__ yeah I always see you change the 'openstudio-measures' to the 'openstudio-measure'. It's really cool that you organize here like this :D

2015-08-10 16:17:15 -0600 commented answer How to know if OpenStudio Plugin opens or saves a file

Okay that actually helped a lot. (funny that I were reading the code yesterday and I didn't see this one) and still thanks a lot for answering me all the time :) (also congrats on your 5K karma!)

2015-08-10 16:06:56 -0600 commented question How to know if OpenStudio Plugin opens or saves a file

@__AmirRoth__ you're welcome, Thank a lot for "always fixing my posts" ! (talking about that, I'm not very sure if adding the term to the tags actually helps...)

2015-08-09 11:36:27 -0600 marked best answer Area of PlanarSurfaces in OpenStudio SDK

Hello and thanks for all the answers by now.

I'm writing this OpenStudio measure that needs the area of each surface and subsurface. What I can find in OpenStudio is just Point3d of each PlanarSurface's vertices and there is nothing I can find about the area. I think that might be because EnergyPlus only gets the X, Y, Z coordinates. So I was thinking about writing a method for calculating the areas or try to match the coordinates with the ones in the SketchUp and then use the area calculated by SketchUp.

This brings me into two questions. First one is that is there any way to get the area directly from OpenStudio? and if the answer is no, Is there any better way to find out the matching SketchUp Face to the OpenStudio PlanarSurface or do I have to find them by coordinates?

Thank you for your time

2015-08-09 11:36:05 -0600 marked best answer Accessing isConditioned() from a Surface in 0penStudio Ruby

Hi! Thanks for all the answers by now.

I have this problem in OpenStudio Ruby SDK as I want to access the isConditioned from a Surface. All that comes to my mind is doing something like:

surface.space.get.thermalZone.isConditioned()

And it doesn't works. I can get the thermal zone and it works till than but I can't get any property of it. Anyone knows the right syntax or way to do it?

Thanks a lot as always

2015-08-08 17:22:58 -0600 received badge  Organizer (source)