Model.elementmarksplit#
- Model.elementmarksplit(collection, crosscode)#
Splits a group of shell/solid elements based on a graphical split line. The split line cannot be defined manually and this function should only be run from the workspace.
- Parameters:
collection (Collection) – The collection containing the element entities to split.
crosscode (hwIntList) – The list containing the IDs of the crossing codes. The crosscode list is calculated internally by depending on the selected split line drawn in the graphics area and cannot be calculated manually.
Example#
Split elements with IDs 1 - 21 use a line drawn in the graphics area#import hm import hm.entities as ent model = hm.Model() elems = hm.Collection(mode, ent.Element, list(range(1,22))) intList = [ 33, 18, 12, 192, 18, 34, 34, 64, 72, 136, 136, 136, 72, 136, 72, 1, 132, 40, 132, 132, 48] model.elementmarksplit(collection=elems, crosscode=intList)