honeybee_iesve.writer module

Methods to write Honeybee core objects to GEM.

honeybee_iesve.writer.model_to_gem(model, project_info=None, convert_room_ids=True)[source]

Generate an IES GEM string representation of a Model.

Parameters:
  • model – A honeybee model.

  • project_info – An optional ladybug ProjectInfo object that describes criteria about the project site. When specified, this will result in the location and north_angle into the GEM. (Default: None).

  • convert_room_ids – A boolean to indicate wether the room IDs should be converted to IESVE format as part of the translation. Only change this option to False if you have already converted the rooms IDs before passing the model to this function.(Default: True)

Returns:

Text string representation of the contents of a GEM file derived from the input model.

honeybee_iesve.writer.room_to_ies(room)[source]

Convert a Honeybee Room to a GEM string.

Parameters:

room – A Honeybee Room.

Returns:

A formatted string that represents the room in GEM format.

honeybee_iesve.writer.shade_to_gem(shade)[source]

Translate a Honeybee Shade or ShadeMesh to GEM format.

Parameters:

shade – A Honeybee Shade or ShadeMesh object to be converted into a GEM string. This can also be a list of Shade objects in which case the geometries of the Shade will be joined together into a single shade group in the output GEM string.

Returns:

A formatted string for the input shade.

honeybee_iesve.writer.shades_to_gem(shades)[source]

Convert a list of Honeybee Shades and/or ShadeMesh to a GEM string.

Parameters:

shades – A list of Honeybee Shade or ShadeMesh objects. If input shades have a user_data key named __group_id__, they will be written into the GEM string as a single shade group rather than an individual shade face.

Returns:

A formatted string that represents the inputs shades in GEM format.