Model.createautoddp#

Model.createautoddp(entities, autoddptype=0, groupid=0)#

Creates a design points from the selected elements.

<option>=<value> options can be provided in any order.

Parameters:
  • entities (Collection) – The collection containing the element entities to create design points.

  • autoddptype (int) –

    The type of design point:

    1 - Generic

    2 - Beam

    5 - Rivet

    7 - Spring

    30 - Panel metallic

    31 - Panel composite

  • groupid (int) – The ID of the design point set.

Example#

Create a spring design point from elements with IDs 1000-2000#
import hm
import hm.entities as ent

model = hm.Model()

model.createautoddp(
    entities=hm.Collection(model, ent.Element, list(range(1000, 2001))),
    autoddptype=7,
    groupid=1,
)