Model.movesolvermasses#
- Model.movesolvermasses(solvermass_collection, target_solvermass_id)#
Moves the child solvermasses with config 101 from one parent to another parent solvermass with config 105. Parent solvermass with config 105 can also be put into the
solvermass_collection. In such case all child in the parent entity will be moved to a new parent.- Parameters:
solvermass_collection (Collection) – The collection containing the solvermass entities.
target_solvermass_id (unsigned int) – The ID of the target solvermass.
Example#
Move child solvermasses with ID 1 to 5 from old parent to new parent solvermass ID 6#import hm import hm.entities as ent model = hm.Model() model.movesolvermasses( solvermass_collection=hm.Collection(model, ent.Solvermass, [1, 2, 3, 4, 5]), target_solvermass_id=6, )