Model.markmovetosubmodel#
- Model.markmovetosubmodel(submodel_type, collection, parent_id)#
Organizes entities into a solver submodel.
- Parameters:
submodel_type (hwString) – Use “solversubmodel” to organize into a solver submodel or “includefile” to organize into an include file.
collection (Collection) – The collection containing the entities to organise.
parent_id (unsigned int) – The ID of the solver submodel or include file to organize into.
Example#
Move systems 4 , 8 , and 12 into solver submodel 10#import hm import hm.entities as ent model = hm.Model() systems = hm.Collection(model, ent.System, [4, 8, 12]) model.markmovetosubmodel( submodel_type="solversubmodels", collection=systems, parent_id=10 )