Model.elementtestduplicates#
- Model.elementtestduplicates(collection, outputcollection, dimension)#
Tests elements for whether or not any two share the same nodes in the same order and puts all except one of any set of duplicates on the specified
outputcollection.- Parameters:
collection (Collection) – The collection containing the element entities to test.
outputcollection (Collection) – The collection containing the failed element entities.
dimension (int) –
A code telling to measure the dimension of:
1 - Measure 1D elements.
2 - Measure 2D elements.
4 - Measure 3D elements.
Example#
Test duplicates of all displayed elements#import hm import hm.entities as ent model = hm.Model() elems1 = model.CreateCollectionByDisplayed(ent.Element) elems2 = hm.Collection(model, hm.FilterByEnumeration(ent.Element, ids=hm.hwUIntList([]))) model.elementtestduplicates(collection=elems1, outputcollection=elems2, dimension=1)