Community
Hi All,
After the very useful advice i got from the forum with my last problem i have now come accross another problem which i cant seem to solve.
I am trying to write a line of C# code which will search through all of the sheets in my project and select the first one in the list with a name which contains "Ground"
The best i have managed so far is to get an icollector which includes all sheets.
I am using Revit 2013.
Many thanks
Mike
Solved! Go to Solution.
Solved by peterjegan. Go to Solution.
Try this
ElementId foundfirst = null; foreach (ViewSheet vs in viewsheets) { if (vs.Name.Contains("Ground")) { foundfirst = vs.Id; break; } }