I am trying to load custom construction sets created in Rhino and sent to the folder %AppData%\Roaming\ladybug_tools\standards\constructionsets using the Rhino command PO_SaveToUserLibrary with the function:
from honeybee_energy.lib.constructionsets import construction_set_by_identifier
I can see my custom construction sets when I open a new Rhino project but get a ValueError outside the Rhino env.
Can you give more information here, @marentette ? When you say “outside the Rhino env,” you mean that you are not using Rhino or Grasshopper? Are you getting this ValueError when using the Python packages with a standalone system Python?
Yea, it’s because those construction sets have constructions referencing stuff in the DOE/NREL library. And, because that library is huge, we only load it when it’s needed.
I’ll see if I can implement something that falls back on trying to load the DOE/NREL library when the import fails.
I started working on this but had some other things come up. I’ll push a fix be the end of Monday that ensures you can read in the ConstructionSets with that function.
Sorry it took me a while but I finished implementing some fixes that ensure that your new constructions that reference other materials in the standards library can be loaded correctly with the construction_set_by_identifier() method:
It will take an hour for the change to make it through our CI but, after this, you can pip install lbt-dragonfly -U and then you’ll be able to load all of your ConstructionSets: