I would like to know if checking all elements have been relinquished without actually opening the file is possible?
Getting the login name in Revit of the person who still has some borrowed or owned elements would save some time. Background reporting maybe?
Thnx in advance
Looks like it is possible with this method: http://www.revitapidocs.com/2018.1/1a4b4bbb-060d-1f42-fbb2-ab85081f8e7f.htm
But you would need to collect all elements in the document and iterate through, so i dont know if it would be a viable method, if you want to check an entire model
Thank you Martin
What i would like is equivalent to opening the file, go to worksets, selecting all to be visible, and report on borrowed/owned.
No names there would suggest everybody checked out.
Its nice to see there is something in the API at least.
Now i need a Python course
Found a workaround (carefull…danger)
Make an archive of the central file aswell as the backup folder for that file.
dump the .slog file
Hehe, that is an alternative solution that I do not have any experience with
This could be set up for multiple files :
#Import the Revit API
from Autodesk.Revit.DB import *
#Import DocumentManager and TransactionManager
from RevitServices.Persistence import DocumentManager
#Reference the active Document and application
doc = DocumentManager.Instance.CurrentDBDocument
#Start scripting here:
exDoc = UnwrapElement(IN)
fec = FilteredWorksetCollector(exDoc).OfKind(WorksetKind.UserWorkset).ToWorksets()
output = 
for i in fec:
OUT = exDoc, output