# Generative design in Revit 2023 - No geometry found error

**URL:** <https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037>\
**Category:** Developers\
**Tags:** python, geometry, dynamo\
**Created:** [August 18, 2022, 6:40pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037 "2022-08-18T18:40:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 18, 2022, 6:40pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/1 "2022-08-18T18:40:43Z")

</div>

Hi all!  
I am having issues with previewing geometry for a generative study I ran.  
I also don’t get any values from the outputs, even though I ran the script and don’t have any errors in dynamo.  
Any ideas on what to look for as I debug things? Did anyone encounter a similar problem?  
Much appreciated!

 ![Screen Shot 2022-08-18 at 2.38.44 PM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e06ad3c1f716b74ab51465d6a56d38afebf5048.png)

---

<div class="post-metadata">

**Author:** ![john\_pierson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/john_pierson/32/191977_2.png) [@john\_pierson](https://forum.dynamobim.com/u/john_pierson)\
**Post date:** [August 18, 2022, 9:10pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/2 "2022-08-18T21:10:54Z")

</div>

What does it look like when Ran in Sandbox?

---

<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:** [August 19, 2022, 12:20am UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/3 "2022-08-19T00:20:09Z")

</div>

Also check that all the dependencies are in the graphy’s dependency folder (should be a folder called `graphName.Dependencies /` in the same folder as your graph. If there is a custom node used in the graph that isn’t present in that folder you can get results like this.

---

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 19, 2022, 7:49pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/4 "2022-08-19T19:49:55Z")

</div>

Thanks for your reply. I can’t run it on Sandbox for a whole other reason (currently working on getting GD in sandbox to try it again).

 ![Screen Shot 2022-08-19 at 3.28.53 PM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/4/f46762af387ba431971992db9136952960965079.jpeg)

---

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 19, 2022, 7:51pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/5 "2022-08-19T19:51:40Z")

</div>

The only custom nodes are mine made with python, do I need to do any extra step with those?  
Thanks for advising.

---

<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:** [August 20, 2022, 12:21am UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/6 "2022-08-20T00:21:18Z")

</div>

If you’re using Python 2, you’d need the IronPython package as a start. Beyond that, if the Python nodes have any reference to the Revit API they’ll only produce `null`, which will result in the error you’re seeing.

Once you add the path to your Generative Design package folder (check the node and package paths in Revit, add node and package paths in sandbox as needed), you should have all nodes resolved; if not you’ll need to make some changes on the Revit side.

Basically all calculations needed for generative design to run have to be able to execute in sandbox - as this is what Generative Design sees. So static variables (the stuff in the remember nodes), the dynamic variables (sliders), the design generation, and the design evaluation should all happen in the sandbox environment.

---

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 22, 2022, 1:04pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/7 "2022-08-22T13:04:50Z")

</div>

Thank you, Jacob.  
I installed the generative design Package in Dynamo Sandbox. I also converted all my nodes to Python 3 with the conversion assistant.  
I am still one issue in sandbox: It doesn’t find packages that I thought where included? See attached screenshot of missing packages.  
I also tried running the study in dynamo and I have the issue that it only generates one design solution and therefore only generates one output. It seems that it is not iterating through the sliders I set as input (see second screenshot). Any ideas on why this is?  
Thanks for your help.

 ![Screen Shot 2022-08-22 at 9.00.07 AM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90bbdb54abf2dfe61d9c3286d2e7598e486988ef.png)

 ![Screen Shot 2022-08-22 at 8.51.23 AM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/f/1f6b99b30f088abd22b786a65411b2820ef50bb2.png)

---

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 22, 2022, 1:33pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/8 "2022-08-22T13:33:39Z")

</div>

Another thing that I tried: I deleted all the Revit interacting nodes and left those as list inputs with all the data needed for the study. I rerun the study in dynamo sandbox and still am getting the same error (generative design only outputs single design, as shown in screenshot).  
Finally, I also tried only having a SINGLE variable as input because the issue is apparently with the input sliders?. I had the same result: a single design as opposed to multiple.  
The new issue appears to be: generative design in dynamo is not iterating through different variables, and thus, output is a single design.

 ![Screen Shot 2022-08-22 at 9.33.26 AM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/0/e0bb777636bee6875a3944fa0c6bfd4f059d3bfa.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:** [August 22, 2022, 1:45pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/9 "2022-08-22T13:45:49Z")

</div>

Hmmm… are you trying to minimize values? And if so, are there possible slider combinations which return a null in Dynamo Sandbox?

It winds up being really hard to get smaller than nothing, and so if Generative Design is told to find a minimal value and stumbles into a combination which produces null outputs you’ll get results like this.

---

<div class="post-metadata">

**Author:** ![emv10](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emv10/32/144909_2.png) [@emv10](https://forum.dynamobim.com/u/emv10)\
**Post date:** [August 22, 2022, 1:53pm UTC](https://forum.dynamobim.com/t/generative-design-in-revit-2023-no-geometry-found-error/80037/10 "2022-08-22T13:53:17Z")

</div>

Continuing the discussion here:

> [@Generative design creating single design output error](https://forum.dynamobim.com/t/generative-design-creating-single-design-output-error/80146):
>
> I started a new post since the issue now is different - Following with our exchange with @jacob.small The issue I have is that the generative design component is not iterating through the different variables and thus, the output is a single design solution as opposed to several. When manually changing the sliders, the script runs fine. I even checked ALL the values for each slider to make sure I didn’t have any error. I am testing all this in Dynamo Sandbox. No issues found in the script. -I…
