Model.parametrize_byentity#
- Model.parametrize_byentity(collection, identifier, parameter_entity)#
Assigns a parameter to a dataname of an entity.
- Parameters:
entity (Entity) – The object defining the entity to assign the parameter.
identifier (hwString) – The name of the entities’ identifier (dataname).
parameter_entity (Entity) – The object defining the parameter entity.
Example#
Assign parameter with ID 1 to young modulus of material with ID 1#import hm import hm.entities as ent model = hm.Model() model.parametrize_byentity( entity=ent.Material(model,1), identifier="E", parameter_entity=ent.Parameter(model, 1) )