Now user can analyze MepSection and its elements in Revit Lookup. My commit has 3 methods with clean code. but I have a problem with GetSegmentLength method. It throws exceptions if we invoke it with argument which is not pipe or duct. But we have only ElementId, so I didn't find any way to recognize it and decided to use try-catch block.
Quality Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
Summary of the Pull Request
Adding support of 4 methods of MEPSection class
Now user can analyze MepSection and its elements in Revit Lookup. My commit has 3 methods with clean code. but I have a problem with GetSegmentLength method. It throws exceptions if we invoke it with argument which is not pipe or duct. But we have only ElementId, so I didn't find any way to recognize it and decided to use try-catch block.
Quality Checklist