Model.detach_fromelements#
- Model.detach_fromelements(elements, from_collection, offset)#
Detaches elements from selected elements or nodes.
- Parameters:
elements (Collection) – The collection containing element or node entities to be detached.
from_collection (Collection) – The collection containing the node entities from which to detach the elements.
offset (double) – Offset value of the newly detached nodes.
Example#
Detach element number with ID 16 from two elements with IDs 228 and 243 , and an offset of 1.0#import hm import hm.entities as ent model = hm.Model() model.detach_fromelements( elements=hm.Collection(model, ent.Element, [16]), from_collection=hm.Collection(model, ent.Element, [228, 243]), offset=1.0, )