fusion_addin_framework.utils.get_doc

fusion_addin_framework.utils.get_doc(fusion_path: List[str], tolerance_search=False)adsk.core.DataFile

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

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

  • tolerance_search (bool, optional) – If set to true file name is treated as not case sensitive and any whitespaces are ignored in the search. Defaults to False.

Returns

The queried fusion document.

Return type

adsk.core.DataFile