Model.mark_preserved_edges#

Model.mark_preserved_edges(hmlinescollection, highlight)#

Use this function to highlight edge lines that have been flagged for preservation by means of Model.set_preserved_edges().

Parameters:
  • hmlinescollection (Collection) – The collection containing the line entities. Lines with the “preserved” flag are placed into this collection.

  • highlight (int) –

    0 - Do not highlight the lines

    1 - Highlight the lines

Example#

Place “ preserved “ lines with IDs 14 and 16 and highlight them#
import hm
import hm.entities as ent

model = hm.Model()

hmlinescollection = hm.Collection(model,hm.FilterByEnumeration(ent.Lines,ids=[14,16]))
model.set_preserved_edges(hmlinescollection=hmlinescollection,new_stat=1)
model.mark_preserved_edges(hmlinescollection=hmlinescollection ,highlight=1 )