If your into planning with Navisworks you have most likely experience with creating searchsets. If you want to create a planning that build up your model per level over time you end up creating a whole lot of searchsets. Creating searchsets in Navisworks can be a bit of a tedious chore. I like to think I have a much faster solution for it. There is one small catch. Don’t panic at the site of xml code.
First let’s take this model:
The exterior walls this model are compound walls and have been split up in parts. In the picture below I have zoomed in on a window.
We want a planning where the different parts appear at different times. Basically we want the concrete first, insulation next and masory last.
First let’s make one searchset that finds all concrete parts from the compound wall
Select an element which you would like to find with a searchset and take a look at the properties. Take a look at the selection tree and see where you have something selected. Make sure it’s not geometry when you are working with revit files. There are much more interesting properties when you set the selection resolution to first or last object.
I tend to find most interesting properties on the element tab of the property window. For this purpose the property by arrow 2 and 3 are good. I have put a blue arrow #4 at the property for base level. I recommend not using this one because an other one is much more usefull. I do need a property that has a value for base level just not this one. The ID number of the level screws up the searchsets. Instead go to the property tab: Base level. This tab also has a property called name but this value does not have the ID number of the level in it’s name. Later you’ll see why that’s better.
At arrow one you see the searchset definition: I have created 4 criteria (technically you could probably do without criteria number 1)
- At arrow two I give the searchset a name. I tend to use the values of the criteria seperated by a # for the name. This should give you a rough idea of what the searchset is for.
Now we have our first searchset. Ofcourse you could use the interface, switch some properties of the previous searchset and save the new search. This gets tedious quiet quickly…
On the sets window there is an export searchsets to xml button.
Next go to http://notepad-plus-plus.org/download/
If you don’t have install rights on your machine than you can also put this on a usb drive and run it from there. You’ll have to look around a bit on how to do that but it’s fairly simple.
Let’s take a look at the xml code:
Most likely you will be most interested in all the things that are coloured black!
Also click on the words between < > they will highlight
Notice the line numbers on the left:
line 1 to 3 ignore those. leave them in.
Line 4 is important. Notice the word selectionsetS
Selectionsets can contain multiple selectionset (no S)
Line 5 the selectionset stores it’s name from Navisworks here. This line is important
Line 6 Defines where to search in which models in Navisworks
Let’s create a couple of searchsets that will find the same parts but on different levels.
On line 55 you see that this selectionset ends.
- Put your cursor behind and press enter.
- Put your cursors at the first position on line 56
- Start dragging a selection from line 56 to line 5
- ctrl c
- Put your cursor at the first position on line 56
- ctrl v as many times as you need
- Go to notepath++ menu view collapse level 4 or 3 ( I want the selection sets to look like this image below
collapsing levels will let you rename the name of the searchsets quickly. You are dependant here on a decent naming scheme in revit….. I assume that there is some structure in your level names that should allow for quick changes
Have fun. You’ll have tons of usefull searchsets in a little bit of time.