Model.findattachedelementfaces#
- Model.findattachedelementfaces(collection, table_id)#
Returns information to a table about solid elements attached to quad/tria element. The table must be created with 6 integer columns using the
Model.tablecreatefunction. The output to each column is as follows:Input element IDs
Attached element IDs
Attached element face IDs
Attached element configs
Input element collector IDs
Input element normal reversed flags
- Parameters:
collection (Collection) – The collection containing the input quad/tria element entities.
table_id (int) – The table ID to output the results to. The table must have 6 integer columns.
Example#
Find the elements attached to all tria3 and quad4 elements#import hm import hm.entities as ent model = hm.Model() model.tablecreate( name="attachedelementtable", color=1, config=1, string_array=["INT", "INT", "INT", "INT", "INT", "INT"], number_of_rows=0, ) table = hm.Collection(model, ent.Table, "name=attachedelementtable")[0] tableId = table.id elems = hm.Collection(model,ent.Element,"config IN(104,103)") model.findattachedelementfaces(collection=elems, table_id=tableId)