Model.loadsettypes#

Model.loadsettypes(collection_set, entities)#

Sets the load types to the current global value.

Parameters:
  • collection_set (CollectionSet) – The set of collections containing possibly multiple type of load entities to be updated.

  • entities (EntityFullType) – The type of load to change.

Example#

Set all of the displayed forces to type Force1#
import hm
import hm.entities as ent

model = hm.Model()

model.loadtype(config="force", type="FORCE1")

collection_set = hm.CollectionSet(model)
loadforce_collection = hm.CollectionByDisplayed(model, ent.LoadForce)
collection_set.set(loadforce_collection)
model.loadsettypes(collection_set=collection_set, entities=ent.LoadForce)