Model.CE_ConnectorCreateByAutoseam#

Model.CE_ConnectorCreateByAutoseam(collection, options)#

Creates line connectors between the input marked components/parts based on the options you supply as the input. All options are needed as the input for this function to work. This function is also supported for history (undo/redo).

Parameters:
  • collection (Collection) – The collection containing the entities to create connectors between. Valid entities are parts and components.

  • options (hwString) –

    search_radius=<value> - The distance within which two components/parts should be present to create connectors between them.

    pitch=<value> - The distance for the distribution of connector test points.

    minimum_connector_length=<value> - The minimum length required to create a connector. Connectors with a length less than the defined value are not created.

    exclude_holes_with_radius_less_than=<value> - Holes with a radius less than the defined value are skipped from the connector creation process.

    create_internal_seams=<value> - Specifies if the connector is to be created within the same component/part. Valid values are 0 and 1.

Example#

Create the connector between components “componentA” and “componentB” with the following values of the options#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_ConnectorCreateByAutoseam(
    collection=hm.Collection(
        model, ent.Component, "Name=componentA OR Name=componentB"
    ),
    options="search_radius=10.0 pitch=10.0 minimum_connector_length=10.0 exclude_holes_with_radius_less_than=10.0 create_internal_seams=1",
)