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

Revision history [back]

Good question, I actually have sample measures to do this with site and construction components. I'll follow up tomorrow and either post and link to them or at least provide some sample code. You want to bring in the real BCL object vs. creating one and copying the attributes. The measure first hits BCL in the arguments section to populate a choice list. Then hits it again in the run section to download and apply the selected component. The trick is coming up with logic to have a choice list that works but doesn't have 200 items in it.

Good question, I actually have sample measures to do this with site and construction components. I'll follow up tomorrow and either post and link to them or at least provide some sample code. You want to bring in the real BCL object vs. creating one a new object and copying the attributes. The measure first hits BCL in the arguments section to populate a choice list. Then hits it again in the run section to download and apply the selected component. The trick is coming up with logic to have a choice list that works but doesn't have 200 items in it.

Good question, I actually have have a few sample measures to do this with both a construction and a weather file (actually site and component with a few object types). They are not ready to go on BCL, but here is a link to the construction components. I'll follow up tomorrow and either post and link to them or at least provide some sample code. example on a public repo which is probably the better example for you of the two (keep in mind they are not on BCL because they are not flushed out and tested, but they should still be a useful guide to follow). You want to bring in the real BCL object vs. creating a new object and copying the attributes. The measure first hits BCL in the arguments section to populate a choice list. Then hits it again in the run section to download and apply the selected component.

The trick is coming up with logic to have a choice list that works but doesn't have 200 too many items in it.it. In the construction example linked above I assume the model has a climate zone set (in the site tab); that narrows down the choices to constructions tagged for that climate zone. I also wrote it only for exterior walls to further narrow it down. The SketchUp plugin user script that hits BCL and gets a weather file can first ask you to type the name of a city and then bring up a choice list of 4-5 options. With measures you don't have interactive arguments in that the selection made on the first argument can't change what choices are shown for the next one. You might be ok for now for Technology Performance Exchange Objects. If you had an argument for Indoor Unit, and another for Outdoor, they would have 79 and 52 choices respectively. Long but still manageable.