# Dynashape and Project refinery

**URL:** <https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416>\
**Category:** DesignScript\
**Tags:** dynashape, refinery\
**Created:** [October 3, 2019, 8:11pm UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416 "2019-10-03T20:11:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 3, 2019, 8:11pm UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/1 "2019-10-03T20:11:50Z")

</div>

I tried to optimize a Dynamo file containing a Dynashape using refinery, but refinery seems to ignore the outputs of Dynashape.  
The file I’m trying to run is the truss optimization problem by D. Vermeulen, available from Autodesk university.  
Can you guys help me ? ![Test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/52fdb6c416be05540995f3822b34c5c6989f996a.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:** [October 4, 2019, 6:04am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/2 "2019-10-04T06:04:41Z")

</div>

Can you show a screenshot of what you are seeing in the preview for the node which is marked as that output?

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 8:31am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/3 "2019-10-04T08:31:26Z")

</div>

Here you go.  
This is actually an example from Autodesk University: [https://www.autodesk.com/autodesk-university/class/Structural-Dynamoite-Optimized-Design-and-Fabrication-Workflows-Dynamo-2018](https://www.autodesk.com/autodesk-university/class/Structural-Dynamoite-Optimized-Design-and-Fabrication-Workflows-Dynamo-2018)  
The file:  
[Spatial Truss Deformation.dyn](https://forum.dynamobim.com/uploads/short-url/sbI0gSU82V06y7ClAUhH4O1Jxs1.dyn) (241.3 KB)  
A screenshot:

 ![SC1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf33539f3e8dd161961d140f409fa7b7e27eab79.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:** [October 4, 2019, 10:57am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/4 "2019-10-04T10:57:32Z")

</div>

Can you confirm which version of Refinery you are on? If you change your slider values in Dynamo do you get any ‘null’ results along the way?

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 11:12am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/6 "2019-10-04T11:12:52Z")

</div>

Refinery 0.35.0 (the latest to date)  
Dynamo for Revit 2020

When I change the slider values, I never get any ‘null’ results on the three outputs.

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 11:15am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/7 "2019-10-04T11:15:22Z")

</div>

I was able to run an optimization with Refinery 0.4.44, with Dynamo 2.0.2 and Revit 2017. The problem appears to only affect the recent versions of Refinery.

---

<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:** [October 4, 2019, 11:23am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/8 "2019-10-04T11:23:58Z")

</div>

Are you launching from sandbox, Dynamo for Revit, or from inside Revit directly?

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 11:39am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/9 "2019-10-04T11:39:45Z")

</div>

From Dynamo for Revit.

---

<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:** [October 4, 2019, 11:44am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/10 "2019-10-04T11:44:03Z")

</div>

Might be worth trying from Sandbox directly.

@Lilli_Smith FYI

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 11:50am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/11 "2019-10-04T11:50:26Z")

</div>

The latest version of refinery requires Revit in order to install. After installation, Refinery doesn’t show in Sandbox, and I have to manually move the package files from the Dynamo for Revit folder to Dynamo Core folder in order for the package to appear. Even then, the results are the same.

The fact that the optimization is able to run on earlier versions of Dynamo for Revit, with an earlier version of Refinery shows that the problem probably lies with the newest versions of refinery.

---

<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:** [October 4, 2019, 11:57am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/12 "2019-10-04T11:57:41Z")

</div>

> [@ysalami](#):
>
> The fact that the optimization is able to run on earlier versions of Dynamo for Revit, with an earlier version of Refinery shows that the problem probably lies with the newest versions of refinery.

I agree, which is why I wanted to know if it ran in other launch mechanisms, ie Refinery from Revit directly, via Dynamo for Revit, or via Dynamo Sandbox. 🙂

---

<div class="post-metadata">

**Author:** ![ysalami](https://avatars.discourse-cdn.com/v4/letter/y/c77e96/32.png) [@ysalami](https://forum.dynamobim.com/u/ysalami)\
**Post date:** [October 4, 2019, 8:17pm UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/13 "2019-10-04T20:17:14Z")

</div>

@jacob.small thank you for your help.  
I contacted @LongNguyen who confirmed that he is working on a version of Dynashape that should be compatible with the latest versions of Refinery. He might even have a temporary solution for us to be able to use this version 🤞

I’ll keep you updated.

---

<div class="post-metadata">

**Author:** ![rafal.actun](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rafal.actun](https://forum.dynamobim.com/u/rafal.actun)\
**Post date:** [November 26, 2019, 9:25am UTC](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/14 "2019-11-26T09:25:11Z")

</div>

Hey,  
any luck with solution? I’m stuck on the same step…
