Not able to create workset
Hi @vikrambhaliya1 why do you not take a real screenshot ? and post or best export as image inside dynamo and post ??
Dont have rights on office computer apologize
That’s weird!
I’m going to question creating all those worksets.
Worksets are NOT like layers in AutoCAD.
Do you really want all those worksets?
Also.. I don’t think I’ve ever seen a photo of a screen instead of a screengrab! ![]()
I don’t know the RIE_ElectricalCategories node but is it actually outputting a string?
Is your file workshared? Or have you already run the graph previously?
Crumple node checks for existing worksets and if the file is workshared
However returning nulls indicates another issue - are your Crumple nodes up to date?
Can you paste this into a python node, run, and then let us know the outcome?
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitServices')
from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager
# Get the current Revit document
doc = DocumentManager.Instance.CurrentDBDocument
def create_workset(doc, workset_name):
# Start transaction
t = Transaction(doc, "Create Workset")
t.Start()
try:
# Create new workset
workset = Workset.Create(doc, workset_name)
t.Commit()
return workset
except Exception as e:
t.RollBack()
raise e
workset_name = IN[0] if IN[0] else "My New Workset"
try:
workset = create_workset(doc, workset_name)
OUT = "Successfully created workset: " + workset.Name
except Exception as e:
OUT = "Error creating workset: " + str(e)
Do you have issues with images?
Hi @hayet.sassi2 guess we can create worksets without share the file to a central…even if we just want create it should work..
Hi @sovitek , unfortunately without a central file it’s not possible to create worksets. That’s just how Revit works.
yeah sure , just meean we can create the worksets before we save


