Sample Code Revit Batch Processor 1.1.11 documentation
Gets human readable BIM 360 path.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
The path to the bim360 model. If an exception occurred an empty string will be returned.
str
Pretend this is a file server path rather than cloud model path and swap cloud path with C:/
path (str) – The model cloud file path starting with BIM360
A file path without BIM360
str
Gets project id, model id, human readable path from the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
project GUID, model GUID, human readable cloud path
GUID, GUID, str
Gets BIM360 file size, if file does not exists on local cache it will return -1.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
If file exists the file size in MB, otherwise -1
float
Method reading BIM360 file data from a CSV file.
file_path_csv (str) – Fully qualified file path to CSV to be read.
extension (TODO) – Is an empty place holder…this method is past into another where it expects 2 arguments…
On exception an empty list is returned.
List in format [Revit version, Project GUID, File GUID, file size in MB, file name]
list of str
Reads a csv file containing BIM 360 file data into list of FileItem instances.
file_path_csv (str) – Fully qualified file path to CSV to be read.
a list of FileItem instances representing BIM360 file data. Will return an empty list of an exception occurred.
list of SampleCodeBatchProcessor.FileItem
Reads a list of str into file item class object
row_data (list of str in format [Revit version, Project GUID, File GUID, file size in MB, file name]) – the list containing the file data
Initialized file item instance, None if row is not the right length
SampleCodeBatchProcessor.FileItem