Model.setreviewbymarkenhanced#

Model.setreviewbymarkenhanced(collection, color, shaded, edges)#

Adds entities to the enhanced review list based on a collection. This is similar to Model.setreviewbymark(), but allows for entity shading and edge visualization.

Parameters:
  • collection (Collection) – The collection containing the entities to add to the review list. Valid entities are nodes, points, elements, lines, surfaces, solids, connectors, loads, equations, systems and vectors.

  • color (int) – The color to use for review of the entity. Valid values are 1-64.

  • shaded (int) – If set to 1, surfaces and elements are put into shaded mode.

  • edges (int) – If set to 1, surface and element edges are drawn in black.

Example#

Review the elements with IDs 1 - 100 with color 4 and enable shading and edge visualization, with all other non - reviewed entities have transparency and gray color#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the elements with IDs 1-100
filter_elements = hm.FilterByEnumeration(ent.Element, list(range(1, 101)))
elements_collection = hm.Collection(model, filter_elements)

model.setreviewbymarkenhanced(
    collection=elements_collection, color=4, shaded=1, edges=1
)
model.setreviewcolormode(mode=0)
model.setreviewtransparentmode(mode=1)
model.setreviewmode(mode=1)