Model.unrealizeengineeringentity#

Model.unrealizeengineeringentity(entity, unrealize_mode)#

Unrealizes an engineering entity.

Parameters:
  • entity (Entity) – The object describing the entity to be unrealized.

  • unrealize_mode (int) –

    0 - Delete entities from realization. Only current solver/profile is affected.

    1 - Maintain entities from realization. Only current solver/profile is affected.

    10 - Delete entities from realization. All entities including other solvers/profiles are affected.

    11 - Maintain entities from realization. All entities including other solvers/profiles are affected.

Example#

Unrealize mass with ID 10#
import hm
import hm.entities as ent

model = hm.Model()

model.unrealizeengineeringentity(entity=ent.Solvermass(model, 10), unrealize_mode=0)