Model.CE_BoltAutoCreateFromAttachments#

Model.CE_BoltAutoCreateFromAttachments(collection, tolerance=0.0, mindiameter=0.0, maxdiameter=0.0, ce_config_name='', ce_controller_name='', only2layers=0, maxangle=0.0)#

Creates bolt connectors from attachments.

Parameters:
  • collection (Collection) – The collection containing the attachment entities to create bolt connectors from.

  • tolerance (double) – The tolerance to use for attachment pair searches (default 50.0).

  • mindiameter (double) – The minimum hole diameter to find (default 0.0).

  • maxdiameter (double) – The maximum hole diameter to find (default 25.0).

  • ce_config_name (hwString) – The name of the bolt config.

  • ce_controller_name (hwString) – Reserved for future development

  • only2layers (int) – The number of attachments per bolt (default 0)

  • maxangle (double) – Reserved for future development

Example#

Create a bolt (general) connector from 2 attachments#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_BoltAutoCreateFromAttachments(
    collection=hm.Collection(
        model, ent.Attachment, "Name=attach_200_229 OR Name=attach_36_51"
    ),
    tolerance=25.0,
    ce_config_name="bolt (general)",
)