Model.cardenablebyid#
- Model.cardenablebyid(name, id)#
Allows browsers to enable duplicate control cards by id and name.
- Parameters:
name (hwString) – The name of an existing card to enable.
id (unsigned int) – The HyperMesh ID of the existing card.
Example#
Enable a control card called “PARAM” that has a HyperMesh ID of 10#import hm import hm.entities as ent model = hm.Model() model.cardenablebyid(name="PARAM", id=10)
Note
The current existing function
cardenable()works only onnameof control cards, and is not sufficient to pick the right control card from HyperMesh browsers, if there are duplicate control cards with the same name (i.e. same name but with different ID) in the database and also potentially in different include files.