Model.carddisablebyid#

Model.carddisablebyid(name, id)#

Allows browsers to disable duplicate control cards by id and name.

Parameters:
  • name (hwString) – The name of an existing card to disable.

  • id (unsigned int) – The HyperMesh ID of the existing card.

Example#

Disable a control card called “PARAM” that has a HyperMesh ID of 10#
import hm
import hm.entities as ent

model = hm.Model()

model.carddisablebyid(name="PARAM", id=10)

Note

The current existing function carddisable() works only on the name of 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.