bim360
BIM360-related utilities.
Attributes
mlogger = get_logger(__name__)
module-attribute
COLLAB_CACHE_PATH_FORMAT = '%LOCALAPPDATA%/Autodesk/Revit/Autodesk Revit {version}/CollaborationCache'
module-attribute
Classes
CollabCacheModel(model_path)
Bases: object
Collaboration cache for a Revit project.
Source code in pyrevitlib/pyrevit/revit/bim360.py
Attributes
model_path = model_path
instance-attribute
model_dir = op.dirname(model_path)
instance-attribute
model_name_ex = op.basename(model_path)
instance-attribute
model_name = op.splitext(self.model_name_ex)[0]
instance-attribute
central_cache_model_path = op.join(self.model_dir, 'CentralCache', self.model_name_ex)
instance-attribute
model_backup_path = op.join(self.model_dir, '{}_backup'.format(self.model_name))
instance-attribute
product = finfo.RevitProduct.Name
instance-attribute
project = op.basename(finfo.CentralModelPath)
instance-attribute
CollabCache(cache_path)
Bases: object
Collaboration cache instance containing multiple projects.
Source code in pyrevitlib/pyrevit/revit/bim360.py
Attributes
cache_path = cache_path
instance-attribute
cache_id = op.basename(cache_path)
instance-attribute
cache_models = []
instance-attribute
cache_linked_models = []
instance-attribute
Functions
get_collab_caches()
Get a list of project caches stored under collaboration cache.
Source code in pyrevitlib/pyrevit/revit/bim360.py
clear_model_cache(collab_cache_model)
Clear caches for given collaboration cache model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
collab_cache_model |
CollabCacheModel
|
cache model to clear |
required |