Creating a 3D View to set Worksets

Is it possible to create 3D Views in Revit from the elements set to each workset?

Or Finding all elements in RhinoInside & create a 3DView from found elements?

This would be useful before a model submission to review elements that are set to the correct worksets.


Hi @christopher.pires ,

Hope I understood your question correctly… you want to have 3D views in Revit showing only elements from each workset?!

If that’s the case, then the following definition takes elements, sorts them by their workset, creates 3D views using each workset name, and then Isolates elements within their respective view.

If that’s was not what you are after, let me know and I will try to help out.

Cheers :slight_smile:

WorksetsTo3DViews (21.3 KB)

1 Like


Here’s a definition that creates the 3D view based on the worksets name and then sets the visibility.

On a larger workflow you would have to create additional logic, but this should get you going. (10.1 KB)

1 Like

Thanks Jappy. I just tested this.

It sets the selected Workset on Show.

Then all other workset are set to Use Global Settings. Can we have it set to Hide instead. So that the selected workset is isolated in the 3D view.


Hey @christopher.pires ,

I did a little tweak to @Japhy 's code to make it hide other worksets… hope he doesn’t mind!

Had a little mind freeze when I forgot worksets had their own visibility filters xD

Let me know how it goes. (9.8 KB)


Nice one @M.Tarabishy & @Japhy - Thanks. Hope this is also useful for other too.

@M.Tarabishy No such thing as ‘my code’ feel free to edit how you wish, we appreciate your input.

To recap:

Worksets have a global visibility that a User may want all On or Off by default.

Once on or off then a user may want to set a particular view visibility to a workset.

Or create views and set the visibility for each workset. (13.9 KB)


Hi Guys,

Good day, is there a way to create a workset from scratch and assign the element onto it?


Please see the guide for python components that can Create and Set

1 Like

Thanks Japhy, kind regards.

Hi Japhy,

The new workset didn’t apply to my selected elements?


What does the error say (Red Ballon)

The set workset component is looking for a Workset, the name alone probably won’t suffice.

1 Like

Hi Japhy,

Here is the error:

  1. Solution exception:Starting a new transaction is not permitted. It could be because another transaction already started and has not been completed yet, or the document is in a state in which it cannot start a new transaction (e.g. during failure handling or a read-only mode, which could be either permanent or temporary).

Can I assign a new created workset to an element or switching workset to be assigned to the element? or is just a one off workset application?


If you are chaining these scripted components it will get confused on the transactions. Best to do one off operations until there are native workset components.

1 Like

Thanks Japhy, kind regards.

am I the one having issues with this script?
all the other worksets don’t get hidden…

There are native workset visibility components now.

1 Like

thanks, what Rhino.Inside version is this?

Those were added in 1.12 Rhino.Inside®.Revit

1 Like