Model.hm_answernext#

Model.hm_answernext(answer='')#

Provides an answer to the next function for Python scripts.

Parameters:

answer (hwString) – Valid values are yes, no, all (for ‘yes to all’) and nall (for ‘no to all’).

Returns:

Example#

Answer “yes” to delete the current model, which has not been saved#
import hm
import hm.entities as ent

model = hm.Model()

model.hm_answernext(answer="yes")
model.deletemodel()