Model.hm_ce_getconnectorcontrollist#

Model.hm_ce_getconnectorcontrollist(solver, style, option)#

Returns a list of connector controls or connector control defaults for a given solver and style.

Parameters:
  • solver (hwString) – The solver name.

  • style (hwString) – The connector style. Valid values are app_mass, area, bolt, seam and spot.

  • option (int) –

    0 - Return both connector control and connector control default

    1 - Return connector control default only

    2 - Return connector control only

Returns:

Examples#

Get connector control for solver nastran and style spot#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_ce_getconnectorcontrollist(
    solver="nastran,
    style="spot",
    option=2
)

ctrl = result.connectorControls
print("Connector Control: ", ctrl)