Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting elements using the DuctNetwork property from mechanical systems

1 REPLY 1
Reply
Message 1 of 2
inferno9177
514 Views, 1 Reply

Getting elements using the DuctNetwork property from mechanical systems

inferno9177
Participant
Participant

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#.

 

1.PNG

 

 

Thank you very much!

0 Likes

Getting elements using the DuctNetwork property from mechanical systems

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#.

 

1.PNG

 

 

Thank you very much!

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: inferno9177

jeremytammik
Autodesk
Autodesk

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

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

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

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report