Model.CE_AddLinkEntities#

Model.CE_AddLinkEntities(connector_collection, entity_collection)#

Updates connectors with entities.

Parameters:
  • connector_collection (Collection) – The collection containing the connector entities to update.

  • entity_collection (Collection) – The collection containing the entities to use as links.

Example#

Add components with IDs 1 and 2 as to connectors with IDs 1-3#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_AddLinkEntities(
    connector_collection=hm.Collection(model, ent.Connector, [1, 2, 3]),
    entity_collection=hm.Collection(model, ent.Component, [1, 2]),
)