Revit MEP, setting ductwork parameters using the API (2015)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Revit MEP you can select the "Loss Method" for ductwork fittings from a pulldown parameter. When "Coefficient from ASHRAE table" is selected Revit pulls a value from an Ashrae data file. For some fittings Revit defaults to a table that is incorrect (or requires changing for whatever reason), the table can be manually selected from the "Loss Method settings" parameter.
After delving into many of the Ashrae XML files I had some success changing the default table that Revit uses to determine the coefficient (although I must admit this was mainly due to trial and error as the method Revit uses to determine which table to use was certainly not logical)
I thought I had solved the issue (in a way that satisfied what I needed), but then I discovered that version 2015 (I had been working in 2014) doesnt use the same methods or files to determine the coefficient.
It was this point I looked to see if I could set the coefficent values with the API (I could then read the Ashrae files and select the values I needed depending on fitting type)
I got to the point where I can read all the values but cannot set them programmatically (even though they are not flagged as read only). I have searched the API documentation but cannot find any methods or examples of how the parameters discussed above can be changed using code.
I would greatly appreciate an example (or documentation) relating to this aspect of the Revit API. Also if anyone can explain how 2015 differs to 2014 in relation to this issue I would be most grateful. (I cannot believe Revit 2015 hard codes the references to the Ashrae tables, there must be an alternative set of files that 2015 uses)
Many thanks
Paul M