Model.idmgrshowhide#

Model.idmgrshowhide(submodel_type, id, short_name, show_hide_flag, show_hide_type)#

Show/hide submodel or exclusive entities.

Parameters:
  • submodel_type (hwString) – The type of submodel to compact the IDs for. Valid values are includes and includefiles.

  • id (unsigned int) – The ID of the submodel.

  • short_name (hwString) – The short name of the submodel.

  • show_hide_flag (int) –

    0 - Hide

    1 - Show

  • show_hide_type (hwString) –

    exclusive - Show/hide exclusive entities

    submodel - Show/hide submodel entities

Examples#

Hide include with ID 1 submodel entities#
import hm
import hm.entities as ent

model = hm.Model()

model.idmgrshowhide(
    submodel_type="includes",
    id=1,
    short_name="",
    show_hide_flag=0,
    show_hide_type="submodel",
)
Hide excluded entities#
import hm
import hm.entities as ent

model = hm.Model()

model.idmgrshowhide(
    submodel_type="includes",
    id=0,
    short_name="",
    show_hide_flag=0,
    show_hide_type="exclusive",
)