Model.CE_ConnectorSeamCreateUsingLinelist#
- Model.CE_ConnectorSeamCreateUsingLinelist(line_list, density, spacing, entitycollection, ent_state, ce_rules, ce_le_rule, tol_flag, tolerance, group, param1, param2)#
Creates seam connectors at specified locations by line list with certain rules.
- Parameters:
line_list (EntityList) – The list conaitning the line entities defining the location to create the connectors.
density (unsigned int) – Integer number to split line into number of points. Spacing between points (=line_length/density).
spacing (double) – Float number to split line into number of points with specified distance between points (= spacing).
entitycollection (Collection) – The collection containing the connector entities to use as links. Valid entities are surfaces and components.
ent_state (unsigned int) –
Link elements or geometry.
0 - geom
1 - elems
ce_rules (unsigned int) –
Rule to specify if and how a link entity is to be added to a connector.
0 - None
1 - User select
2 - Proximity
ce_le_rule (unsigned int) –
Rule that specifies how an entity is to be remembered by the connector.
0 - None
1 - Use ID
2 - Use name
tol_flag (unsigned int) –
Specifies if tolerance value is applicable.
0 - Use default.
1 - Use specified value.
tolerance (double) – Specified to add entities only with in the given tolerance from the specified connector (same as search radius in fe realize panel).
group (int) –
Specifies if the individual connectors created from continuous line segments must be grouped to behave as a single connector.
0 - Not grouped.
1 - Group.
param1 (int) – Reserved for future development. Must be se to 0.
param2 (double) – Reserved for future development. Must be se to 0.0.
Example#
Create 2 seam connectors at the locations of line with IDs 1 and 2 to link components with IDs 3 and 4#import hm import hm.entities as ent model = hm.Model() model.CE_ConnectorSeamCreateUsingLinelist( line_list=[ent.Line(model, 1), ent.Line(model, 2)], density=5, spacing=0.0, entitycollection=hm.Collection(model, ent.Component, [3, 4]), ent_state=1, ce_rules=1, ce_le_rule=1, tol_flag=1, tolerance=10.0, group=1, param1=0, param2=0.0, )
Note
This function is outdated, and
MOdel.CE_ConnectorCreateByList()is recommended to be used for creating seam connector.A created seam connector is displayed as a line with cylinder like icons at each of the test points (at the specified spacing) with the closest components added to it. The total number of layers supported by seam connector is two.