Model.freeshapedesvarcreatewithmethod#
- Model.freeshapedesvarcreatewithmethod(collection, name, method)#
Creates a free shape design variable.
- Parameters:
collection (Collection) – The collection containing the entities used in creating the design variable. Valid entities are nodes, elements, sets (nodal only), or properties.
name (hwString) – The name of the design variable.
method (unsigned int) –
0 - CLASSIC
1 - GRID
2 - BLANK
Examples#
Create a free shape design variable fsh1 comprised of nodes, with method BLANK#import hm import hm.entities as ent model = hm.Model() nodes = hm.Collection(model, ent.Node, [2110, 3292]) model.freeshapedesvarcreatewithmethod( collection=nodes, name="fsh1" ,method=2 )
Create a free shape design variable fsh2 comprised of a node set, with method CLASSIC#import hm import hm.entities as ent model = hm.Model() sets = hm.Collection(model, ent.Set, "name=set1") model.freeshapedesvarcreatewithmethod( collection=sets, name="fsh2" ,method=0 )