Thanks for your reply. I have tried implementing your Get() method as follows:
FilteredElementCollector wallTypes // 2014 = new FilteredElementCollector(rvtDoc) .OfClass(typeof(WallType)); string s = ""; foreach (WallType wallType in wallTypes) { s += Get(wallType) + "\r\n"; } TaskDialog.Show( "Revit Intro Lab", "Wall Types (in main instruction):\n\n" + s);
However when I print the result to dialog I get the following message:
"Material_Select_2 + <Get>d__0" for each instance
Material_Select_2 is the name of my class, I am guessing this has something to do with the variable it is stored in, do you have any idea how I can convert this to a string?
Thanks