Model.CE_ConnectorSeamCreateUsingLines#

Model.CE_ConnectorSeamCreateUsingLines(entitycollection, density, spacing, linkcollection, 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:
  • entitycollection (Collection) – The collection containing the line entities that specify the location of the connectors.

  • density (unsigned int) – Split the line into this number of evenly-spaced points.

  • spacing (double) – Split line into points with this distance between them.

  • linkcollection (Collection) – The collection containing the entities to add the connector as links. Valid entities are surfaces and components.

  • ent_state (unsigned int) –

    Link elements or geometry.

    0 - geometry

    1 - elements

  • ce_rules (unsigned int) –

    Rule to specify 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 - Grouped

  • 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_ConnectorSeamCreateUsingLines(
    entitycollection=hm.Collection(model, ent.Line, [1, 2]),
    density=5,
    spacing=0.0,
    linkcollection=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_ConnectorCreateByMark() 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.