Model.readnodepositionsfromh3dfile#

Model.readnodepositionsfromh3dfile(path, animation_number=0, create_initial_xref_cards=0, comps_collection=s_defaultCollection)#

Modes nodes in the current model to positions given in an H3D file.

A valid model must be loaded.

Parameters:
  • path (hwString) – The full path and file name of the H3D file.

  • animation_number (unsigned int) – The animation frame used to load the positions. Default is 0 which corresponds to the last frame.

  • create_initial_xref_cards (unsigned int) –

    The flag to create /XREF cards.

    0 - /XREF cards are not created. (default)

    1 - /XREF cards for nodes positioned are created.

  • comps_collection (Collection) – The collection containing the component entities for creating the reference geometry. For LS-DYNA models, this option is mandatory.

Example#

Read node positions from “ C:/Users / default / result.h3d “#
import hm
import hm.entities as ent

model = hm.Model()

model.readnodepositionsfromh3dfile(path="C:/Users/default/result.h3d")