Model.hm_convertmarktorange#
- Model.hm_convertmarktorange(collection)#
Converts a collection to an ID range and returns the ID range list with comma separators.
- Parameters:
collection (Collection) – The collection containing the entities to convert.
- Returns:
hwReturnStatus- Status object
Example#
Return all nodes as an ID range#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_convertmarktorange(collection=hm.Collection(model, ent.Node)) print("idRange", result.idRange)