Model.hm_gethistorylimit#

Model.hm_gethistorylimit()#

Returns the maximum number of steps allowed to be recorded in the history. If a value of 0 is returned, history is disabled. If a value of -1 is returned, there is no step limit.

Returns:

Example#

Get the number of steps allowed to be recorded in the history#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_gethistorylimit()

print("limit", result.limit)