Model.attributeupdatedoublearray2dmark#
- Model.attributeupdatedoublearray2dmark(collection, identifier, solver, status, behavior, data)#
Updates an attribute of type 2D double array (list of
hwDoubleList()) 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.
data (hwDoubleList2) – The list of lists of doubles of the attribute.
Example#
Update the load colletor with IDs 71 , 77 in * FREQ5_FR_ARRAY2D * dataname (identifier=7710) in Optistruct profile#import hm import hm.entities as ent model = hm.Model() # Finding the FREQ5_FR_ARRAY2D identifier using the hm_attributeidentifier function _, r = model.hm_attributeidentifier( entity_type=ent.Loadcol, entity_id=71, attribute_name_or_id="FREQ5_FR_ARRAY2D" ) # Setting the dataname model.attributeupdatedoublearray2dmark( collection=hm.Collection(model, ent.Loadcol, [71, 77]), identifier=r.id, solver=1, status=2, behavior=0, data=[[1.0, 10**5, 3.14, 5.1], [2.0, 10**6, 6.14, 2.1]], )