As Revit seems unable to search for text within schedules i am trying to write a dynamo workflow that does!
This is my current dynamo workflow:
Schedule Text Search.dyn (30.8 KB)
Currently the workflow gathers all schedules, then filters by view template and also by various characters that i know relate to schedules i don’t need to gather.
I’m then left with a small list of filtered schedules that i want to search for specific text.
I have used the “Schedule.GetData” node from BimorphNodes Package to gather all data within each of my schedule view.
Then i have identified the indices of the lists containing the text.
My problem is how do i then filter the small list of schedules to find out exactly which schedule view the text was found on?
The list.AnyTrue node looks at Level 2 so returns (in my case) 254 results so i can’t use that to filter (by boolmask) the smaller list (34 items) of schedule views.
Also, as a little bonus question…
Rather than having 3 filter groups near the beginning of the workflow that searches for “*”, “.” and “_”, can i filter the list by all 3 at the same time? ie. if the string/‘schedule view’ name contains any of the following characters?
Many thanks in advance for any help.
I will update if i progress any further.
Also it seems no-one has asked about searching for text within schedules before, unless the forum search has failed me. So hopefully this workflow can help others (when finalised). Please be aware that without filtering your list of all schedules in the project file this workflow can take a long time to run / can crash (talking from experience). This is why i have filtered firstly by view template as it reduce the number of schedules significantly. Obviously each project file will be different and not everyone will use view templates as i do but just something to be aware of.