Model.nonstructuralmassupdateall#
- Model.nonstructuralmassupdateall(name, color, type, mass, card_image)#
Updates a group with non-structural mass configuration for all properties of a specified.
- 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.
card_image (hwString) – The card image of the properties to update the non-structural mass for. Valid values are “ELEMENT”, “PBAR”, “PBARL”, “PBEAM”, “PBEAML”, “PCOMP”, “PROD”, “PSHEAR”, “PSHELL”, “PTUBE”, “PSHELL”.
Example#
Update a non - structural mass named “ nsm1 “ of type 1 ( NSM1 ) for properties with “ PSHELL “ card image with mass value 2.4#import hm import hm.entities as ent model = hm.Model() model.nonstructuralmassupdateall( name="nsm1", color=8, type=1, mass=2.4, card_image="PSHELL" )
Update a non - structural mass named “ nsml1 “ from type 1 ( NSM1 ) to type 2 ( NSML1 )#import hm import hm.entities as ent model = hm.Model() model.nonstructuralmassupdateall( name="nsml1", color=8, type=2, mass=2.4, card_image="PSHELL" )