Model.gapelementupdate#

Model.gapelementupdate(collection, property, name, vectorid, Update)#

Updates the property pointer of gap elements.

Parameters:
  • collection (Collection) – The collection containing the input gap element entities.

  • property (hwString) – The name of the property to which the gap elements should point.

  • name (Entity) – The object describing the orientation vector entity associated with the gap element.

  • vectorid (int) – The orientation vector ID associated with the gap element.

  • Update (int) – TBD

Example#

Create a gap element between node 5 and node 245 with property gapprop, without an orientation vector#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.Collection(model, ent.Element, "config=70")
model.gapelementupdate(collection=elems, property="gapprop", name=None, vectorid=1)