Model.springsupdate#
- Model.springsupdate(collection, dofflag, dof, propertyflag, property, vectorflag, vectorentity)#
Updates the properties of spring elements.
- Parameters:
collection (Collection) – The collection containing the spring elements entities to update.
dofflag (int) – Set to 1 if the dofs should be updated, otherwise 0.
dof (hwBoolList) – The degree of freedom which the spring elements should be updated to.
propertyflag (int) – Set to 1 if the property should be updated, otherwise 0.
property (hwString) – The property to which the element should point.
vectorflag (int) – Set to 1 if the vector should be updated, otherwise 0.
vectorentity (Entity) – The object describing the orientation vector entity associated with the spring element.
Example#
Update spring element with IDs 16 , 17 , and 18 to have a degree of freedom of 3 and a property reference to “sprate”, without an orientation vector#import hm import hm.entities as ent model = hm.Model() model.springsupdate( collection=hm.Collection(model, ent.Element, [16, 17, 18]), dofflag=1, dof=[False, False, True, False, False, False], propertyflag=1, property="sprate", vectorflag=0, vectorentity=None, )