Model.attributeupdateintmark#
- Model.attributeupdateintmark(collection, identifier, solver, status, behavior, value)#
Updates an attribute of type integer on a set of entities.
- Parameters:
collection (Collection) – The collection containing the entities that owns the attribute.
identifier (int) – The identifier of the attribute.
solver (int) – The solver number of the attribute.
status (int) – The status of the attribute.
behavior (int) – The behavior of the attribute.
value (int) – The value of the attribute.
Example#
Update the load collector with ID 26 , 81 in * FSI_MINEX * dataname (identifier=10120) in Optistruct profile by set value to 2#import hm import hm.entities as ent model = hm.Model() # Finding the FSI_MINEX identifier using the hm_attributeidentifier function _, r = model.hm_attributeidentifier( entity_type=ent.Loadcol, entity_id=26, attribute_name_or_id="FSI_MINEX" ) # Setting the dataname model.attributeupdateintmark( collection=hm.Collection(model,ent.Loadcol,[26, 81]), identifier=r.id, solver=1, status=2, behavior=0, value=2, )