loadModel#

pyCGM2.Utils.files.loadModel(path: str, FilenameNoExt: str)#

Load a pyCGM2 model instance from a file.

Parameters:
  • path (str) – The path to the directory containing the model file.

  • FilenameNoExt (str) – The filename of the model file without extension.

Returns:

Model – The loaded pyCGM2 model instance.

Raises:

Exception – If the model file does not exist.