Model.hm_getactivesimstep#

Model.hm_getactivesimstep()#

Returns the active subcase ID and simulation step ID.

Returns:

Example#

Get the active subcase ID and simulation step ID#
import hm
import hm.entities as ent

model = hm.Model()

_, curr = model.hm_getactivesimstep()

subcase = curr.subcaseId
simstep = curr.simulationStepId

print("Active Subcase ID:", subcase)
print("Active Simulation Step ID:", simstep)