honeybee_3dm.grid module¶
Create Honeybee grid objects from objects in a rhino file.
-
honeybee_3dm.grid.
import_grids
(rhino3dm_file, layer, tolerance, *, grid_controls=None, child_layer=False)[source]¶ Creates Honeybee grids from a rhino3dm file.
This function assumes all the grid objects are under a layer named
grid
.- Parameters
rhino3dm_file – The rhino file from which Honeybee grids will be created.
layer – A Rhino3dm layer object.
tolerance – A rhino3dm tolerance object. Tolerance set in the rhino file.
grid_controls – A tuple of values for grid_size and grid_offset. Defaults to None. This will employ the grid setting of (1.0, 1.0, 0.0) for grid-size-x, grid-size-y, and grid-offset respectively.
child_layer – A bool. True will generate grids from the objects on the child layer of a layer in addition to the objects on the parent layer. Defaults to False.
- Returns
A list of Honeybee grids.