Model.hm_getinternalid_bypoolid#
- Model.hm_getinternalid_bypoolid(id_pool, 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:
id_pool (int) – The input pool ID.
solver_id (int) – The solver ID to query.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:internalId (int)
Example#
Get the internal HM ID of pool ID 1 and solver ID 2#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getinternalid_bypoolid(id_pool=1, solver_id=2) print("internalId", result.internalId)