Generate Duct reduction using C#

Generate Duct reduction using C#

Francisco_OrtizN86AJ
Explorer Explorer
464 Views
1 Reply
Message 1 of 2

Generate Duct reduction using C#

Francisco_OrtizN86AJ
Explorer
Explorer

Francisco_OrtizN86AJ_0-1723140034714.png

 



I have been trying to generate a script to optimize the MEP ducts, however I have not been able to create the transition between the HVAC unit and the smaller size duct. I have checked in the RevitAPI and tried different methods but no luck so far. I would appreciate if someone has experience generating the element highlighted in the image, I am currently using Revit 2022. I tried using the HVAC outlet connector and the starting connector from the duct but I could not find any method that would allow me to generate this piece.

I appreciate your support very much.

0 Likes
465 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

You will probably have a much easier time working with the Revit API if you gather some experience manually in the end user interface first. Such a reduction is generally implemented by a family definition in an RFA file. Normally, you would equip the family definition with various dimensions implemented as family parameters to define the width, height, offset etc. at both ends of the reduction. Then, to place such an object in your MEP system in the project environment, you would load the family, generate a suitable family type by setting appropriate values to the family parameters defining its dimensions, and place an instance into the system. The family definition would be equipped with connector elements, and these would be converted to Connector objects in the project, to be hooked up with the neighbouring duct elements. Check it out here:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes