I have not yet found a node or a python script example that allows me to export a list of worksets or Revit / AutoCAD links to Excel for model management purposes.
Does anyone know if this already exists?
If not, I am not sure how to find the syntax for workset (for example) that I could call to using a custom python node…
Just starting to learn about the custom python nodes and how to create these.
Cool - thanks! I didn’t know about that package.
If you are getting started, here are some great links.
Thank you! where do you suggest I start for Custom Python nodes?
Bakery package has a nodes that has informations on link files.
Thanks! I also haven’t tried that yet
I started by dissecting nodes from clockwork and archilab.
Below are some links for learning python.
And also Stack Overflow is a good place to ask python related queries.
Hi there! Is anybody else noticing an issue with this ‘classic’ node Get Worksets in Dynamo 1.2.0?
I am getting an unrecoverable error… Clockworks package is offering a way to grab Worksets, but these are worksets by element, rather than file worksets.
There seems to be an node with ‘Bakery’ but it conflicts with Lunchbox, Clockworks, Rhythm packages
I like Python- posthign this here for future reference- PY to get worksets in Revit - tweaked to add pairs of name + ID in output.
# Import DocumentManager and TransactionManager
from RevitServices.Persistence import DocumentManager
# Import RevitAPI
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
existWorksets = list()
##Get list of worksets filtered b user worksets only
fwc = FilteredWorksetCollector(doc).OfKind(WorksetKind.UserWorkset)
for ws in fwc: ##For each of the worksets:
Pair=list() #Container for list pair of name + ID
Pair.append(ws.Name) #Append Name
Pair.append(ws.Id) #Add ID
existWorksets.append(Pair) #Add pair to output
OUT = existWorksets