Model.hm_proximitymarktargetproximityelements#
- Model.hm_proximitymarktargetproximityelements(collection)#
Register into collections all the target elements within proximity to the given collection.
This must be preceded by a call to
Model.hm_proximityinit()and followed by a call toModel.hm_proximityend().- Parameters:
collection (Collection) – The collection of entities to which the elements will be placed.
- Returns:
hwReturnStatus- Status object
Example#
Output the target proximity elements tocollectionand highlight them#import hm import hm.entities as ent model = hm.Model() components_collection = hm.Collection(model, ent.Component) model.hm_proximityinit(components_collection, max_distance=2.5) elemFromComps = hm.Collection(model, ent.Element, populate=False) model.hm_proximitymarktargetproximityelements(collection=elemFromComps) model.hm_highlightmark(collection=elemFromComps, highlight="h") model.hm_proximityend()