Model.hm_getinternalid_bypoolname#

Model.hm_getinternalid_bypoolname(pool_name, solver_id)#

Returns the internal ID for a solver ID and 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 (int) – The solver ID to query.

Returns:

Example#

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

model = hm.Model()

_, result = model.hm_getinternalid_bypoolname(pool_name="PROP_IDPOOL", solver_id=17)

print("internalId", result.internalId)