Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I currently have a FilteredElementCollector finding all pipes in the model. I would like to disregarded pipes that are vertical/have a slope equal to "Not Computed". What is the best way to achieve this?
public Result Execute(ExternalCommandData edata, ref string message, ElementSet elements)
{
UIDocument uidoc = edata.Application.ActiveUIDocument;
Document doc = uidoc.Document;
Transaction t = new Transaction(doc, "Auto Trench");
t.Start();
// Find all Pipes in Model
FilteredElementCollector pipes = new FilteredElementCollector(uidoc.Document);
List<Pipe> pipeList = pipes.OfClass(typeof(Pipe)).OfType<Pipe>().ToList();
Thanks.
Solved! Go to Solution.

Developer Advocacy and Support +