Hi all, I am trying to get all the elements from a mechanical system in C#.
I have gotten to the point where I have all the mechanical systems (mechSystem) in the project but I can't seem to use this, as it gives me only the terminals like AHUs and air grilles.
foreach (Element ele in mechSystem.Elements) { lstOfElements.Add(ele); }
Is there a way that I can use the DuctNetwork property? I have used the snoop tool to check the system and saw ducts, fittings, etc in the Element Set. I can't seem to find a way on how I can get those elements in C#.
Thank you very much!
Hi all, I am trying to get all the elements from a mechanical system in C#.
I have gotten to the point where I have all the mechanical systems (mechSystem) in the project but I can't seem to use this, as it gives me only the terminals like AHUs and air grilles.
foreach (Element ele in mechSystem.Elements) { lstOfElements.Add(ele); }
Is there a way that I can use the DuctNetwork property? I have used the snoop tool to check the system and saw ducts, fittings, etc in the Element Set. I can't seem to find a way on how I can get those elements in C#.
Thank you very much!
Look at the Revit SDK samples. One of interest to you is TraverseSystem.
In addition, The Building Coder shares a Simple MEP System Traversal add-in, among a number of others that you can also check out:
https://thebuildingcoder.typepad.com/blog/2013/02/simple-mep-system-traversal.html
Look at the Revit SDK samples. One of interest to you is TraverseSystem.
In addition, The Building Coder shares a Simple MEP System Traversal add-in, among a number of others that you can also check out:
https://thebuildingcoder.typepad.com/blog/2013/02/simple-mep-system-traversal.html
Can't find what you're looking for? Ask the community or share your knowledge.