Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66708

Re: Getting the multiple element IDs for materials in a wall

$
0
0

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


Viewing all articles
Browse latest Browse all 66708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>