Model.CE_AutoCreateAreaConnectors#
- Model.CE_AutoCreateAreaConnectors(inputCollection, searchTolerance, shellThicknessOption=0, shellThicknessValue=0.0)#
This command automatically creates area connectors by identifying pairs of penetrating entities within a given search tolerance and feature angle (uses the global feature angle set by the user).
- Parameters:
inputCollection (Collection) – The collection containing the input entities. Valid entity types are parts and components.
searchTolerance (double) – The search tolerance used for finding pairs of penetrating entities to create area connectors.
shellThicknessOption (int) –
The option to determine the use of shellthicknessvalue to calculate search tolerance.
0 - shellthicknessvalue is not considered
1 - shellthicknessvalue will be added to the thickness of shell elements
2 - shellthicknessvalue specifies a multiplication factor for shell elements
shellThicknessValue (double) – Based on the shellthicknessvalueoption value, this is either an add-on value or a multiplication factor for shell thicknesses during proximity detection.
Example#
Automatically create area connectors on all components within search tolerance of 10.0#import hm import hm.entities as ent model = hm.Model() all_comps = hm.Collection(model, ent.Component) model.CE_AutoCreateAreaConnectors( inputCollection=all_comps, searchTolerance=10.0 )
Automatically create area connectors on displayed parts with 20.0 search tolerance#import hm import hm.entities as ent model = hm.Model() displayed_parts = hm.CollectionByDisplayed(model, ent.Part) model.CE_AutoCreateAreaConnectors( inputCollection=displayed_parts, searchTolerance=20.0 )
Automatically create area connectors on displayed parts by considering shell thickness value and an add-on of 1.0#import hm import hm.entities as ent model = hm.Model() displayed_parts = hm.CollectionByDisplayed(model, ent.Part) model.CE_AutoCreateAreaConnectors( inputCollection=displayed_parts, searchTolerance=1.0, shellThicknessOption=1, shellThicknessValue=1.0 )
Automatically create area connectors on displayed components by considering shell thickness value and a multiplication factor of 2.5#import hm import hm.entities as ent model = hm.Model() displayed_comps = hm.CollectionByDisplayed(model, ent.Component) model.CE_AutoCreateAreaConnectors( inputCollection=displayed_comps, searchTolerance=1.0, shellThicknessOption=2, shellThicknessValue=2.5 )