fusion_addin_framework.utils.get_data_folder

fusion_addin_framework.utils.get_data_folder(fusion_path: List[str], create_folders=False)adsk.core.DataFolder

Searches the data hub for a data folder at the given “fusion path”. A “fusion path” is a list in the form [<project_name>,<folder>,<subfolder>,<subfolder>,…] which describes the position of the data folder.

Parameters
  • fusion_path (List[str]) – The path of the fusion data folder in the form [<project_name>,<folder>,<subfolder>,<subfolder>,…].

  • create_folders (bool, optional) – Indicates if new folders should be created if a folder in the “fusion path” doesnt exist. Defaults to False.

Raises

FileNotFoundError – If create_folders is set to False and a folder in the passed “fusion path” doesnt exist.

Returns

The queried data folder.

Return type

adsk.core.DataFolder