Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service. Translate

Select all in workset

Select all in workset

if i need to show only workset elements, i shall hide all worksets in view.. Now i am working in rail project and the only satation have about 30 workset...and that process is too slow and not useful, and i didn't need to make a parameter to catch elements on schedules.

Now we think about what if we have a selection tool called "select all elements in workset" and " select all instance in workset "

It will be helpful and useful for all of us

Thanks
11 Comments
Yien_Chao
Advisor
Ha! There is a Dynamo solution 🙂
But yeah, it should be an option in Revit.
scbunker
Collaborator

For those looking for a non-dynamo, everyman's workaround for this: Pick a view, any view, uncrop, turn on temporary view properties, change the view range to unlimited top and bottom, and then turn off all worksets except the one you're looking for. Then window everything and filter for the model elements.

Anonymous
Not applicable

there are more options that should be in revit like "move  object from one level to another level"

Anonymous
Not applicable

Working on a large scale project here and need to enter parameters for all elements under a specific workset. I have a dynamo solution but want to refine it by eliminating my manual selection of elements. @Yien_Chao What is the dynamo solution that you mentioned above?

Yien_Chao
Advisor

here a hint... the code. it not 100% Dynamo, but a mix with a Python coding.

You have to input a workset by name in this case ...

use :  Workset.GetAll();

also : i use instance, but you have to input every type of instance you want to select.

 

 

import clr

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

Workset = IN[0].Id
WID = WorksetId(Workset)

doc = DocumentManager.Instance.CurrentDBDocument
collector= FilteredElementCollector(doc)
filter =ElementWorksetFilter(WID)

els = collector.OfClass(Instance).WherePasses(filter).ToElements()

OUT = els

Anonymous
Not applicable

Hello,

There is a solution to select elements by them worksets and categories ?

I need to reduce the size of a Dynamo script.

So, I don't want to filter all the elements by them worksets because I think it increase the loading delay.

 

 

I would love to do filtered selections by workset. E.g. User1 needs to select all the elements belonging to his workset "User1" in order to copy them to another building level. Currently i have to create a new view and hide all other worksets but "User1" workset, then select the objects.

Tags (1)
twellins
Advocate

You can do this through a schedule.  Add Worket to you schedule, set the query and highlight all objects in the schedule.

 

Tip here is to keep a 3D model open with everything (or at least showing everything you MIGHT need).  Highlight your section and go to the open 3D model and all your objects will be selected.

twellins
Advocate

We use DiRoots One to do this as well.  The module is called one filter.  You can select catergories, objects etc based off a certain query.

twellins_0-1737428966625.png

 

@twellins : I used DiRoots One as well. But there are too many mouse clicks in the process. I was thinking something much faster, like Workset Isolate and fade the rest of the model, similar to LayerIsolate command in Autocad.

dclarkT3BYW
Community Visitor

During the course of a project (since 2019), I have accumulated changes by adding to "CURRENT" workset and moving discarded elements to "SUPERSEDED" workset (I created both). I'm sure that in your projects, the client never changes their mind and wants things put back in after deletion. Now that the project is almost finished, I want to delete all of the SUPERSEDED items. I'll try the schedule idea and see how it goes. 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report