Model.hm_findadvancedselectiongroups#
- Model.hm_findadvancedselectiongroups(collection, method='by attached', angle=DBL_MAX)#
Finds advanced selection entities and separates them into selection method specific groups.
- Parameters:
collection (Collection) – The collection containing the surface entities.
method (hwString) –
The advanced selection method. Valid values are “by attached”, “by face” and “by face across t junctions”
This value can be omitted, in which case “by attached” is used.
angle (double) – The feature angle value used for faces detection. The value can be omitted, in which case the default feature angle value is used.
- Returns:
hwReturnStatus- Status objectHmQueryResultList- Result list object containingHmQueryResultobjects with the following output data:surfaces (EntityList) - Entity Type:
Surface
Example#
Find all groups of connected surfaces#import hm import hm.entities as ent model = hm.Model() _ , resultlist = model.hm_findadvancedselectiongroups(collection=hm.Collection(model, ent.Surface)) for result in resultlist: print("surfaces", result.surfaces)