ladybug_rhino.config module

Ladybug_rhino configurations.

Global variables such as tolerances, units and Rhino versions are stored here.

class ladybug_rhino.config.Folders[source]

Bases: object

Ladybug-rhino folders.

Properties:
  • uo_folder

  • gha_folder

  • lbt_grasshopper_version

  • lbt_grasshopper_version_str

property gha_folder

Get the path to the GHA Grasshopper component folder.

property lbt_grasshopper_version

Get a tuple for the version of lbt-grasshopper (eg. (3, 8, 2)).

This will be None if the version could not be sensed.

property lbt_grasshopper_version_str

Get text for the full version of python (eg.”3.8.2”).

This will be None if the version could not be sensed.

property uo_folder

Get the path to the user object folder.

ladybug_rhino.config.conversion_to_meters()[source]

Get the conversion factor to meters based on the current Rhino doc units system.

Returns:

A number for the conversion factor, which should be multiplied by all distance units taken from Rhino geometry in order to convert them to meters.

ladybug_rhino.config.units_abbreviation()[source]

Get text for the current Rhino doc units abbreviation (eg. ‘m’, ‘ft’)

ladybug_rhino.config.units_system()[source]

Get text for the current Rhino doc units system. (eg. ‘Meters’, ‘Feet’)