arif-hanif / honeybeex

Honeybee plugin for Grasshopper and Dynamo!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

honeybeex

Honeybee plugin for Grasshopper

# Here is a simple example on how to use the API
from honeybeex.radiance.sky.certainIlluminance import SkyWithCertainIlluminanceLevel
from honeybeex.radiance.recipe.gridbased import HBGridBasedAnalysisRecipe
from honeybeex.hbsurface import HBAnalysisSurface


pts = [(0, 0, 0), (10, 0, 0), (10, 10, 0), (0, 10, 0)]
vectors = [(0, 0, 1)]

# create the sky
sky = SkyWithCertainIlluminanceLevel(2000)

# create a Honeybee surface using vertices
hbsrf = HBAnalysisSurface("001", pts, surfaceType=None, isNameSetByUser=True)

# put an analysis recipe together
rp = HBGridBasedAnalysisRecipe(sky, pts, vectors, None, [hbsrf])

# write the files and runs the analysis
rp.writeToFile("c:\ladybug", "test")
rp.run(False)

# read the results
print rp.results

About

Honeybee plugin for Grasshopper and Dynamo!

License:GNU General Public License v3.0


Languages

Language:Python 100.0%Language:Batchfile 0.0%