http://dynamobim.com/forums/topic/creating-a-new-workset/
Andreas Dieckmann was kind enough to let us know that this has been possible since the Revit R2 release.
This prompted me to do some searching and I found this post from the building coder.
http://thebuildingcoder.typepad.com/blog/2015/02/revit-2015-r2-and-the-read-write-workset-api.html
And then I came up with this little gem. :)
It will take both a list and a single name (as a string) and create those worksets for you in a workshared model.
See the video below for it in action and get it on the package manager now. (Another note, this will only work for Revit 2015 and R2 update and beyond)
Hi, very nice to post this. I right away added a small feature of reading the worksets names from excel. see:http://danielgijsbers.blogspot.nl/2015/06/automate-creation-of-worksets.html
ReplyDeleteWith credits for your nice work!
Daniel, Great work! The excel connectivity was the idea and you got it! Great for standard workset naming!
ReplyDeleteGet linked file name, create workset, set workset for linked file instance?
ReplyDeleteekkonap- there's a way to do that.
ReplyDeletehttp://sixtysecondrevit.blogspot.com/2015/06/more-worksetcreate-fun-with-dynamobim.html
@ekkonap, you would probably also want to set the type workset for the linked file.
ReplyDeleteAnd clockwork has a node for that :-)
ReplyDeleteI am interested in this node. Is this custom or ootb?
ReplyDeleteIt's a custom node I made in package Rhythm.
ReplyDeleteNeed help. I have downloaded Rhythm and have Revit and Dynamo up to date. I am getting a null from my Workset.Create with the same example John has. Any thoughts? I have tried having the dialog open and closed. Also run on auto and manual.
ReplyDeleteAre you at least Revit 2015 R2 Update (for subscription) or Revit 2016?
ReplyDeleteJohn, we are using 2015 with sp8.
ReplyDeleteThe build number will be specific. Let me check mine in the morning and see. The work set create Api opened up with the mid year release of revit 2015 last year. Called revit 2015 release 2. It is only for subscription customers. Have you also enabled work sharing before attempting to run the script?
ReplyDeleteIt also may be easier to email me directly at sixtysecondrevit@gmail.com
ReplyDeleteThis workflow is currently working for me with this Update. Screenshot
ReplyDeleteI've been after something like this for a while! Perfect! Only problem is, i can't get it to work..
ReplyDeleteMy setup is Revit 2015, Build: 20150702_1515(x64)
Update Release 9
Dynamo version: 0.8.2.2392
Is this compatible? Should it have worked?
That build appears to not include the R2 release from about this time last year. http://goo.gl/xz9KYj
ReplyDeleteThanks JohnP - you've prompted me in the right direction - problem now solved! I had to uninstall Revit and reinstall because I already had UR9 installed.
ReplyDeleteFor anyone that comes across the same issue, I reinstalled Revit 2015, then installed the R2 patch, then installed the UR9 for R2 file, and the build number came up as it should. All Dynamo packages are operational! [woohoo]
Glad to hear it! Enjoy!
ReplyDelete