Model.nonstructuralmassupdate#
- Model.nonstructuralmassupdate(name, color, type, mass, collection)#
Updates a group with non-structural mass configuration.
- Parameters:
name (hwString) – The name of the non-structural mass group to update.
color (int) – The color of the non-structural mass group. Valid values are 1-64.
type (unsigned char) – The solver type of the non-structural mass group.
mass (double) – The value of the non-structural mass.
collection (Collection) – The collection containing the entities. Valid values are elements and properties.
Examples#
Update a non - structural mass named “ nsm1 “ of type 1 ( NSM1 ) for properties with IDs 1 - 4 with mass value 2.4#import hm import hm.entities as ent model = hm.Model() model.nonstructuralmassupdate( name="nsm1", color=8, type=1, mass=2.4, collection=hm.Collection(model, ent.Property, [1, 2, 3, 4]), )
Update a non - structural mass named “ nsml1 “ of type 2 ( NSML1 ) for elements with IDs 10 , 20 , 30 and 40 with mass value 3.5#import hm import hm.entities as ent model = hm.Model() model.nonstructuralmassupdate( name="nsml1", color=8, type=2, mass=3.5, collection=hm.Collection(model, ent.Element, [10, 20, 30, 40]), )