# Using Generative Design for Option Engineering

**URL:** <https://forum.dynamobim.com/t/using-generative-design-for-option-engineering/99895>\
**Category:** Generative Design\
**Tags:** geometry, dynamo, generative-design\
**Created:** [April 10, 2024, 8:42am UTC](https://forum.dynamobim.com/t/using-generative-design-for-option-engineering/99895 "2024-04-10T08:42:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobusmGJ4VU](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kobusmgj4vu/32/149577_2.png) [@kobusmGJ4VU](https://forum.dynamobim.com/u/kobusmGJ4VU)\
**Post date:** [April 10, 2024, 8:42am UTC](https://forum.dynamobim.com/t/using-generative-design-for-option-engineering/99895/1 "2024-04-10T08:42:02Z")

</div>

Is it only me that wants to use the generative design (GD) UI in Revit for viewing various visual testing options with multiple loops instead of purely data driven design?

The idea is simple, grab a solid form, randomize the heights of horizontal screens and then these screens extrude various offsets. So, it’s essentially two loops with variations.

 ![A](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a27d4ac94df3f794bd12ab5ac5ea414765b20b9f.png)

I’m running into issues where I need to bank the data prematurely and can’t run multiple loops where it randomizes the horizontals and the extrusion distances.  
Some additional notes:  
• Revit 2024  
• I do not want to apply a divided surface pattern for the mass, as this is only a secondary skin.  
• For post editing and flexibility, I specifically used the legacy K-Family inserts for the nested geometries to be able to edit and the family somehow magically makes the family’s lines to be a host for structural beams where the Nurbs-Curves / Poly-Curves in dynamo can’t host to the beams.  
• The generative design snip shared was only randomizing the extrusion variations and not the horizontal offsets. Not sure if both are possible?

 ![B](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/fff63d719c7a489be5348a3db82222987efc5e4d.jpeg)

Please see attached the dynamo script (HorizontalScreen from Solid.dyn) that works well for its intended purpose. Let me know your thoughts, and if its possible to run the randomization through generative design UI, then review the options and send the selected option to Revit using GD. Please also the attempted GD script (HorizontalScreen from Solid\_Generative Design.dyn). The script has been altered to test in the GD Environment, it needs the data.remember node, and an output. Not the intended purpose.

[Dome.rfa](https://forum.dynamobim.com/uploads/short-url/qyYhqkYEGbiEnWnSSDuwyyFXEiT.rfa) (3.0 MB)  
[HorizontalScreen from Solid.dyn](https://forum.dynamobim.com/uploads/short-url/sTkEAG9UrxLlxWVAG4ku43pV1hH.dyn) (116.4 KB)  
[HorizontalScreen from Solid\_Generative Design.dyn](https://forum.dynamobim.com/uploads/short-url/jjc1TIjWJ18JTLPKbK3Ggo8AKhW.dyn) (5.0 MB)

---

<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:** [April 10, 2024, 5:09pm UTC](https://forum.dynamobim.com/t/using-generative-design-for-option-engineering/99895/2 "2024-04-10T17:09:04Z")

</div>

Going to play with this tonight, but want to clarify: you are running this from inside the .rfa posted above, not from a project with an instance of the rfa in it, right?

---

<div class="post-metadata">

**Author:** ![kobusmGJ4VU](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kobusmgj4vu/32/149577_2.png) [@kobusmGJ4VU](https://forum.dynamobim.com/u/kobusmGJ4VU)\
**Post date:** [April 11, 2024, 7:06am UTC](https://forum.dynamobim.com/t/using-generative-design-for-option-engineering/99895/3 "2024-04-11T07:06:14Z")

</div>

Hi Jacob! Thank you for the response! I did run the script in the Revit Project environment and not in the family. I see the .rfa attached was the one I’ve received from studio, the family needed to be cleaned up and they wanted it to be one consistent mass. Please find the cleaned family attached.  
[Dome\_Cleaned.rfa](https://forum.dynamobim.com/uploads/short-url/1Cq9YVzbyEcZNhBAhvTaZ4UEcZz.rfa) (588 KB)
