How to select all elements in a Phase Demolished and move them to a single Workset?

archi-lab

#1

Hi All i’m trying to filter out all elements under the Phase Demolished and assign them to a workset

Here is what i have so far…

PhaseDemo.dyn (10.3 KB)

how do i wire that so that all elements under demolished filter (regardless of category) will be parked under the DEMO workset.


#2

Not sure this is possible. I believe that sections of wall demo’d to insert a door or window (which show up as an element in your list) cannot be assigned a workset as they inherit the workset of the wall which they were originally a part of. Confirm that this is doable manually first as otherwise you may have to figure out how to reduce the selection before you progress to your end goal.


#3

I am only selecting Walls, doors, windows, generic models…etc…
Can do manually yes but i have hundreds of elements to assign to the demo workset.

i don’t need those portions of walls that are “demolished” upon insertion of doors / windows


#4

I believe that your graph has them included as it currently stands, so you may have to remove them via a filter.


#5

You were on a right track. Just do this:

Here’s a definition:

Home.dyn (17.4 KB)

You will need a package called archi-lab.net installed. I have used version 2019.2.6. Good luck!

Ps. I only collected walls, but you know how to replace that part of the graph. Everything else should be the same.


#6

Thanks much @Konrad_K_Sobon, will try this one out and feedback later.

EDIT :
Working perfectly @Konrad_K_Sobon

I want to improve the code and ask the user to pick which categories they need.
like the one shown below but i don;t know how wire the All Elements of Category to UserInput of UI.MultipleForm++

@Alban_de_Chasteigner, @Mostafa_El_Ayoubi
can you help me again here?


#7

Hi @Revit_Noob
You can do it like this :


In this case the “All elements of category” node is equivalent to the list create node in your scenario. It has lists of all elements in each one of the selected categories.


#8

Thanks @Mostafa_El_Ayoubi
I’m getting null values…

EDIT :
sorry i overlooked you replaced the Category list.
I followed your code, it’s working fine now.

thank you so much!