Hi all,
I am trying to make a button in Revit (2017) to hide and unhide elements (Generic Models) with a specific name, using a macro written in VB.net
Can anyone help me get going? I am a beginner in VB scripting...
So far I tried to collect all Generic Models in the project using this code:
Code:
Public Sub SelectGMs()
Dim Collector As New FilteredElementCollector(Me.ActiveUIDocument.Document)
Collector.OfCategory(BuiltInCategory.OST_GenericModel)
TaskDialog.Show("Number of GMs", "Number of Generic Models " & Collector.Count.ToString)
End Sub
Because I get too many results, I guess Revit returns more than I want, so I need to filter it down, but I don't know VB enough to do this.