API Method to Create Caps at Open Ends for Ducts?

Hello Dynamo Community,

I’m currently working on a project where I need to create caps at the open ends of ducts using Dynamo. Is there any API method or Dynamo node that can help automate this process?

If anyone has experience with this or can point me in the right direction, I would greatly appreciate it!

Unfortunately, don’t have any method availbale to Duct to open End Cap, but this is the way you can achive :

  • Place a family instance at location of connector
  • Calculate the angle rotate of end cap with duct.
  • Connect end cap into Duct

With Plumping you can ref code here : OpenMEP/OpenMEPRevit/Element/Pipe.cs at 985d962f86ab3dcc77276cb6b41a9b1f14056151 · chuongmep/OpenMEP · GitHub

2 Likes

exackly what @chuongmep say i have just created my own dirty one but works…bassicly as he mention :wink:

Revit_PUgY33dhVN

2 Likes

Why not just Select All Instances > In Entire Project and Cap All Open Ends? Just a few clicks and no need for Dynamo.

2 Likes

yeah agree, not so complicated, as with dynamo we have to find the right cap from the duct series

1 Like

Why we have PlumbingUtils.PlaceCapOnOpenEnds but not the same for duct is so far beyond me…

yeah, same here :wink:

That’s a good question. Pipes always have a circular shape, but ducts can be circular, oval, or rectangular. I believe Autodesk just needs more time to account for all these cases. :slightly_smiling_face:

1 Like

Thank you all for your valuable insights and support! I truly appreciate the time and effort you’ve put into sharing your knowledge. Your contributions have been incredibly helpful

1 Like