# Mesh to Solid

**URL:** <https://forum.dynamobim.com/t/mesh-to-solid/108654>\
**Category:** Revit\
**Tags:** revit, geometry, dynamo\
**Created:** [March 11, 2025, 11:32am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654 "2025-03-11T11:32:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 11, 2025, 11:32am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/1 "2025-03-11T11:32:10Z")

</div>

Can someone help me to transfer the attached mesh into a solid in Revit? I tried the following approach, but it did not work out:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c7f1cd704c8cdf9cdcf7db019acbf53a2ce44931.png)  
[Mesh2Solid.rvt](https://forum.dynamobim.com/uploads/short-url/6HyhYPBsKjrlhy0A9SFB1eEfHeJ.rvt) (716 KB)

---

<div class="post-metadata">

**Author:** ![yaseminV2XL5](https://avatars.discourse-cdn.com/v4/letter/y/bb73d2/32.png) [@yaseminV2XL5](https://forum.dynamobim.com/u/yaseminV2XL5)\
**Post date:** [March 11, 2025, 11:42am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/2 "2025-03-11T11:42:51Z")

</div>

Hi @tim.thuernau. You can use DirectShape.ByGeometry or ImportInstance.ByGeometry.

> **[Dynamo Dictionary](https://dictionary.dynamobim.com/#/Revit/Elements/DirectShape/Create/ByGeometry)**

> **[Dynamo Dictionary](https://dictionary.dynamobim.com/#/Revit/Elements/ImportInstance/Create/ByGeometry)**

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 11, 2025, 12:15pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/3 "2025-03-11T12:15:43Z")

</div>

The resulting ‘solid’ can be pushed into a family, direct shape, or other element. What would you want to move it over to?

---

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 11, 2025, 12:28pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/4 "2025-03-11T12:28:59Z")

</div>

Thanks for your answers. I want to receive an element, which can be used as baseGeometry for a Point Projection. How can i solve this?

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

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 11, 2025, 1:59pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/5 "2025-03-11T13:59:16Z")

</div>

This doesn’t use Revit elements, but Dynamo geometry. As such the solid you have now should work - are you having errors?

---

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 14, 2025, 10:39am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/6 "2025-03-14T10:39:36Z")

</div>

I checked the script. There are 2 warnings coming up:

1st: The chosen plate geometry results in an empty list. How can this be fixed?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bd758770fb55adec65407838e716cb6859e836df.png)

2nd: The second chosen geometry is a mesh. Can this cause problems at the point projection?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/3525b6057a13a368798e32e484ceae6510ada508.jpeg)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 14, 2025, 2:20pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/7 "2025-03-14T14:20:30Z")

</div>

> [@tim.thuernau](#):
>
> 1st: The chosen plate geometry results in an empty list. How can this be fixed?

Can’t fix without the model to figure out why - is this readily identifiable in the project you posted above?

> [@tim.thuernau](#):
>
> 2nd: The second chosen geometry is a mesh. Can this cause problems at the point projection?

Yes - you will need to convert to a solid or a MeshToolkit mesh instead of a basic Dynamo mesh.

---

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 17, 2025, 7:49am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/8 "2025-03-17T07:49:09Z")

</div>

Thanks @jacob.small,

Here is the file:  
[Mesh2Solid-Plate.rvt](https://forum.dynamobim.com/uploads/short-url/sf9QErdYQyw6DVyOWxRr7WnpIXK.rvt) (4.0 MB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/70b8f601ad7a171d7dfcfd6304eb2066bb0b1e09.png)

I want to generate solids from the meshs below to then project points from the plates above on the solids.

---

<div class="post-metadata">

**Author:** ![lvirone](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@lvirone](https://forum.dynamobim.com/u/lvirone)\
**Post date:** [March 17, 2025, 12:33pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/9 "2025-03-17T12:33:43Z")

</div>

Hello

This topic talk about it : [Convert Mesh to Solid - Autodesk Community](https://forums.autodesk.com/t5/revit-api-forum/convert-mesh-to-solid/td-p/12456082)

I don’t think there is an efficient solution with Revit API to convert a Mesh to Solid without getting an internal error sometimes. I hope I am wrong because DirectShapes cannot get material and subCategory, and FreeFormElement needs a Solid to work.

However, in Dynamo you can look this method to create a solid by joining mesh surfaces : [Conver Mesh to solid in dynamo by "Solid.ByjoinSurface"](https://forum.dynamobim.com/t/conver-mesh-to-solid-in-dynamo-by-solid-byjoinsurface/88690)

---

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 24, 2025, 3:48pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/10 "2025-03-24T15:48:14Z")

</div>

Did you find a solution @jacob.small ?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 24, 2025, 6:01pm UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/11 "2025-03-24T18:01:13Z")

</div>

Did some diging last week and finalized it today. Your surfaces don’t form a closed solid in Dynamo or Revit, so some data has been lost or it’s been built without water tightness in mind. What’s the history of the mesh? How have you built it?

---

<div class="post-metadata">

**Author:** ![tim.thuernau](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tim.thuernau](https://forum.dynamobim.com/u/tim.thuernau)\
**Post date:** [March 25, 2025, 6:07am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/12 "2025-03-25T06:07:51Z")

</div>

The mesh was imported from an ifc. Is there a way to transform it into a closed solid using dynamo or not?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 25, 2025, 8:44am UTC](https://forum.dynamobim.com/t/mesh-to-solid/108654/13 "2025-03-25T08:44:46Z")

</div>

Anything is possible, but the starting point will need to be cleaned up. You could try converting to a mesh toolkit mesh and working with that. It allows advanced mesh operations such as projection as well as closing any cracks.
