Model.hm_ce_findduplicates#
- Model.hm_ce_findduplicates(tolerance, connectors, location_type)#
Returns a list of connectors that are considered to be duplicates of other connectors, within a given tolerance.
- Parameters:
tolerance (double) – The maximum distance between connectors to be considered as duplicate.
connectors (Collection) – The collection containing the connector entities to consider.
location_type (hwString) – The connector location type. Currently only supported for “point”.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:duplicateConnectors (EntityList)
Example#
Get all duplicate connectors within a tolerance of 0.05#import hm import hm.entities as ent model = hm.Model() connectors = hm.Collection(model, ent.Connector) _, result = model.hm_ce_findduplicates( tolerance=0.05, connectors=connectors, location_type="point" ) print("Duplicated Connectors: ", result.duplicateConnectors)