Model.attributeupdatedoublearrayelementmark#
- Model.attributeupdatedoublearrayelementmark(collection, identifier, solver, status, behavior, index, value)#
Updates one element of an attribute of type double array (
hwDoubleList()).- Parameters:
collection (Collection) – The collection containing the entities that owns the attrbute.
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.
index (int) – Index into the array (first index is zero).
value (double) – The value of the array element.
Example#
Update the load colletor with ID 74 in * IMPERF_FACT * dataname (identifier=11346) in Optistruct profile#import hm import hm.entities as ent model = hm.Model() # Finding the IMPERF_FACT identifier using the hm_attributeidentifier function _, r = model.hm_attributeidentifier( entity_type=ent.Loadcol, entity_id=74, attribute_name_or_id="IMPERF_FACT" ) # Setting the dataname model.attributeupdatedoublearrayelementmark( collection=hm.Collection(model, ent.Loadcol, [74]), identifier=r.id, solver=1, status=2, behavior=0, index=1, value=3.14, )