Model.midsurface_display_plates#

Model.midsurface_display_plates(use_base_surfaces, plate_type)#

The function creates components that show the plate information present in the model. The plate information is drawn for the following surfaces:

  • All surfaces of the currently active components (i.e., with geometry display turned on).

  • All surfaces of non-active components (i.e. with geometry display turned off) that possess an active (i.e. geometry display turned on) middle surface.

Parameters:
  • use_base_surfaces (int) –

    This specifies whether the user-defined base surfaces will be taken into account when displaying the plate information. Valid values are:

    0 - Base surface information is not taken into account. The existing plate information is left intact and displayed as is.

    1 - Base surface information is taken into account. The existing plate information is displayed, however all the surfaces of all plates (planar or sweep) that contain a base surface are turned into offset plates.

  • plate_type (int) –

    Specifies which plate information to display. Valid values are:

    0 - Draw plates of all type (as well as non-plates, like plate edge, transition, not-a-trim surfaces, etc…).

    1 - Display planar plates only

    2 - Display sweep plates only

    3 - Display offset plates only

Examples#

Show the plate information on all currently displayed components , without take base surface information into account#
import hm
import hm.entities as ent

model = hm.Model()

model.midsurface_display_plates(use_base_surfaces=0, plate_type=0)
Show the plate information about only sweep plates from all currently displayed components , take base surface information into account#
import hm
import hm.entities as ent

model = hm.Model()

model.midsurface_display_plates(use_base_surfaces=1, plate_type=2)