Model.hm_getinternalidlist_bypoolname#

Model.hm_getinternalidlist_bypoolname(pool_name, solver_id_list)#

Returns the internal IDs for a list of solver IDs and a solver ID pool. This function is only applicable to templates and entity types that have ID pools.

Parameters:
  • pool_name (hwString) – The input pool name.

  • solver_id_list (hwIntList) – The list of solver IDs to query. All IDs must belong to the specified pool.

Returns:

Example#

Get the internal HM ID of pool PROP_IDPOOL and solver IDs 17 and 20#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getinternalidlist_bypoolname(pool_name="PROP_IDPOOL", solver_id_list=[17, 20])

print("listOfInternalIds", result.listOfInternalIds)