Model.markersupdate#

Model.markersupdate(collection, node_entity, syst_entity, sys_flag, color, update_node, update_syst, update_color)#

Updates MBD analysis markers.

Parameters:
  • collection (Collection) – The collection containing the marker entities to be updated.

  • node_entity (Entity) – The node entity that defines the location of the markers.

  • syst_entity (Entity) – The system entity of the orientation coordinate system.

  • sys_flag (int) – A flag for the coordinate system. A value of 0 indicates that the coordinate system will be blank.

  • color (int) – The color of the markers.

  • update_node (int) –

    A flag indicating if the node will be updated.

    0 - do not update the node

    1 - update the node

  • update_syst (int) –

    A flag indicating if the system will be updated.

    0 - do not update the system

    1 - update the system

  • update_color (int) –

    A flag indicating if the color will be updated.

    0 - do not update the color

    1 - update the color

Example#

Update markers “ m1 “ and “ m2 “ to both use orientation system with ID 25#
import hm
import hm.entities as ent

model = hm.Model()

markers_collection = (hm.Collection(model, ent.Sensor, "Name=m1 OR Name=m2"),)
Node_entity = None
Syst_entity = ent.System(model, 25)
model.markersupdate(
collection=markers_collection,
node_entity=Node_entity,
syst_entity=Syst_entity,
sys_flag=1,
color=0,
update_node=0,
update_syst=1,
update_color=0,
)