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

Re: How to change the type of a Ramp

$
0
0
You need to use the BuiltInCategory.OST_Ramps and collect the elementype using whereElementiselementType filter. bic is your builtincategory foreach ( Element elem in new FilteredElementCollector(doc) .OfCategory(bic) .WhereElementIsElementType() .Where(s => notAComponentStair(doc, s, bic) == true) .Cast() .ToList() .OrderBy(et => et.Name) ) { //Element elem = elemType as Element; dict_types.Add(elem, elem.Name); }

Viewing all articles
Browse latest Browse all 66666

Trending Articles



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