# Direct shape error: Input geometry is not valid

**URL:** <https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145>\
**Category:** Revit\
**Tags:** windows\
**Created:** [November 10, 2021, 9:39pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145 "2021-11-10T21:39:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![moghadasi.mahshid](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/moghadasi.mahshid/32/557379_2.png) [@moghadasi.mahshid](https://discourse.mcneel.com/u/moghadasi.mahshid)\
**Post date:** [November 10, 2021, 9:39pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/1 "2021-11-10T21:39:59Z")

</div>

Hi everyone.

I’m trying to use direct shape to transfer a facade from Rhino to revit and I’m getting the following error message for some of the geometry:  
Direct shape error: Rhino.inside.Revit.GH: Input geometry is not valid. Stored Bounding Box extends far outside of computed bounding box.

I was using Revit 2019 and Rhino inside 1.2. Upgraded both to Revit 2021 and Rhino inside 1.3.But the problem persists.

 ![Screenshot 2021-11-09 160326](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/1/1/a1111ad9b1b47275a0f6f78c0ff7309898379864.png)

This is part of a thread of conversation that I had with Japhy here:

> [@Rhino Inside - Facade panels with almost 200 panel types](https://discourse.mcneel.com/t/rhino-inside-facade-panels-with-almost-200-panel-types/132485/8):
>
> Revit 2019 and Rhino inside 1.0 (1.2.7955.31573 (2021-10-12))

So basically the same code is working for them, but not for me. I appreciate any suggestions you might have.

Thanks!

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [November 10, 2021, 9:49pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/2 "2021-11-10T21:49:16Z")

</div>

I’m curious if there are any types other than Brep/Surface going into the Direct Shape Geometry.

Can you use a Flatten after the B output value and Create Set and see what we are working with? Thanks

---

<div class="post-metadata">

**Author:** ![moghadasi.mahshid](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/moghadasi.mahshid/32/557379_2.png) [@moghadasi.mahshid](https://discourse.mcneel.com/u/moghadasi.mahshid)\
**Post date:** [November 12, 2021, 5:36pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/3 "2021-11-12T17:36:06Z")

</div>

So apparently there were also some curves there. After dispatching them, still I’m getting this error for create set: Invalid cast: Brep » Primitive Data Type

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/7/9/179d7fbf529b394879d8b9744cd4be08549ba491.png)

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [November 12, 2021, 5:56pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/4 "2021-11-12T17:56:04Z")

</div>

you would need to run it through a Text component first for the Cset to work in this case.

---

<div class="post-metadata">

**Author:** ![moghadasi.mahshid](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/moghadasi.mahshid/32/557379_2.png) [@moghadasi.mahshid](https://discourse.mcneel.com/u/moghadasi.mahshid)\
**Post date:** [November 12, 2021, 6:27pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/5 "2021-11-12T18:27:12Z")

</div>

Thank you! Here’s the result:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/c/1/0c1416c78b26ae9f22431ecd0f371bafeda0d20f.png)

I just ran a quick test of dispatching those invalid breps to see if it helps. Without them, the error changes to this and the geometry is still not in revit:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/a/a/faaa7f759e8af8fc9292ebf32998f50fa5186aba.png)

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [November 12, 2021, 6:42pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/6 "2021-11-12T18:42:40Z")

</div>

This is getting us closer. Is it possible to do this in a fresh file with a new Add DirectShape component?this may be due to tracking associated with this component.

New Revit File, Lock the solver, open up rhino - grasshopper and replace the Add DirectShape component before enabling the solver.

---

<div class="post-metadata">

**Author:** ![moghadasi.mahshid](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/moghadasi.mahshid/32/557379_2.png) [@moghadasi.mahshid](https://discourse.mcneel.com/u/moghadasi.mahshid)\
**Post date:** [November 16, 2021, 4:27pm UTC](https://discourse.mcneel.com/t/direct-shape-error-input-geometry-is-not-valid/133145/7 "2021-11-16T16:27:53Z")

</div>

Hi Japhy! This worked! Although the component is still orange with a “naked edges” warning message, the geometry is now in Revit. Thanks!
