Model.nonstructuralmasscreateall#
- Model.nonstructuralmasscreateall(name, color, type, mass, card_image)#
Creates 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 create.
color (int) – The color of the non-structural mass group. Valid values are 1 through 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 create the non-structural mass for. Valid values are “ELEMENT”, “PBAR”, “PBARL”, “PBEAM”, “PBEAML”, “PCOMP”, “PROD”, “PSHEAR”, “PSHELL”, “PTUBE”, “PSHELL”.
Examples#
Create 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.nonstructuralmasscreateall( name="nsam1", color=8, type=1, mass=2.4, card_image="PSHELL" )
Create a non - structural mass named “ nsml1 “ of type 2 ( NSML1 ) for properties with PBAR card image with mass value 3.5#import hm import hm.entities as ent model = hm.Model() model.nonstructuralmasscreateall( name="nsaml1", color=8, type=2, mass=3.5, card_image="PBAR" )