# Equivalent for Autodesk.Solid.ByUnion in Revit API?

**URL:** <https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332>\
**Category:** Revit\
**Created:** [March 21, 2020, 8:52pm UTC](https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332 "2020-03-21T20:52:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wouter.hilhorst](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@wouter.hilhorst](https://forum.dynamobim.com/u/wouter.hilhorst)\
**Post date:** [March 21, 2020, 8:52pm UTC](https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332/1 "2020-03-21T20:52:17Z")

</div>

Hi,  
For some time I`ve been working with the Autodesk.Solid.ByUnion command. With this command it is possible to Union multiple (separate) objects together into 1 object. I`m wondering if there is an equivalent for this command in the Revit API. The only one I could find is the “ExecuteBooleanOperationModifyingOriginalSolid”. But this one only seems to work on two solids?  
Wouter

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [March 21, 2020, 10:00pm UTC](https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332/2 "2020-03-21T22:00:05Z")

</div>

Look at `Document.CombineElements(Autodesk.Revit.DB.CombinableElementArray members)`. Otherwise, look at the Form class.

---

<div class="post-metadata">

**Author:** ![wouter.hilhorst](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@wouter.hilhorst](https://forum.dynamobim.com/u/wouter.hilhorst)\
**Post date:** [March 23, 2020, 10:16am UTC](https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332/3 "2020-03-23T10:16:47Z")

</div>

Hi Thomas,  
Thanks for your reply. I haven`t got it to work yet. Do you maybe have an example of how this Document.CombineElements(Autodesk.Revit.DB.CombinableElementArray members) should be applied in a script? I have been looking for examples on different forums but couldn`t find any.  
Underneath I attached a printscreen of what I`m trying to achieve. As you can see it works fine in combination with the Solid.ByUnion command. But I`m looking for the python equivalent so I can implement it in the loops.  
Wouter Hilhorst

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35a50be159f674d43d94f0d31ab2aa609542dc59.png)

---

<div class="post-metadata">

**Author:** ![wouter.hilhorst](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@wouter.hilhorst](https://forum.dynamobim.com/u/wouter.hilhorst)\
**Post date:** [March 23, 2020, 11:22am UTC](https://forum.dynamobim.com/t/equivalent-for-autodesk-solid-byunion-in-revit-api/48332/4 "2020-03-23T11:22:14Z")

</div>

I got it to work with Solid.byUnion in Python now.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/5/65f60254467683a8012326af16636972c04fc16b.png)
