# Exporting DynaShape Script to Project Refinery

**URL:** <https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411>\
**Category:** Uncategorized\
**Tags:** dynashape\
**Created:** [October 3, 2019, 4:50pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411 "2019-10-03T16:50:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Lee1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joe_lee1/32/47271_2.png) [@Joe\_Lee1](https://forum.dynamobim.com/u/Joe_Lee1)\
**Post date:** [October 3, 2019, 4:50pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/1 "2019-10-03T16:50:50Z")

</div>

I am doing an exercise exporting Long Nguyen’s DynaShape package script to Project Refinery. It is my very first attempt to use DynaShape. I was able to open DynaShape’s sample files after the most recent package installation. The new Refinery Beta solved the graphic error I experienced previously.

The latest road block comes to the exporting the script to Refinery. Has anyone have this error message before and possibly found a solution?

- Revit 2019.2
- Dynamo Core 2.0.3.8810
- Dynamo Revit 2.0.3.8811
- DynaShape 0.6.0.0

 ![2019-10-03_11-34-44](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/4/d4303c354f1f17176dda80bdd4cc1d560f6de5f9.jpeg) ![2019-10-03_11-35-52](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/8089edd822f84bb12059a3a8221e62d170c05349.jpeg) ![20191003_1001](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11754c786c6d5c0a4b2bc8b45b4010f47ce43ed1.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 3, 2019, 5:59pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/2 "2019-10-03T17:59:29Z")

</div>

I haven’t had that problem before, but I think I know what is going on… do you have the “Solver.Execute” node set to be an output? Remember that Refinery can only use numbers as an output, so you need a way to quantify how well the end results perform.

---

<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, 6:33pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/3 "2019-10-03T18:33:05Z")

</div>

I tried to run the spatial truss deformation example from Autodesk University, using the latest versions of refinery and Dynamo, but it doesn’t work. Refinery runs just fine, except that the deformation score (a result from Dynashape) is not considered in the simulation.

 ![Sans%20titre](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dc359cd7c769da5f5ec8f7e6998e14ea04d8fefa.png)

---

<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, 6:42pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/4 "2019-10-03T18:42:08Z")

</div>

Another screen of the problem.

 ![SA](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd85228951cdf57d5f577f99ec220322b01c4b4f.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:01am UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/5 "2019-10-04T06:01:29Z")

</div>

Can you post a screenshot showing which watch node is the deformation score 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:33am UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/6 "2019-10-04T08:33:57Z")

</div>

> [@Dynashape and Project refinery](https://forum.dynamobim.com/t/dynashape-and-project-refinery/41416/3):
>
> 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:

---

<div class="post-metadata">

**Author:** ![xempastor](https://avatars.discourse-cdn.com/v4/letter/x/dc4da7/32.png) [@xempastor](https://forum.dynamobim.com/u/xempastor)\
**Post date:** [December 17, 2019, 9:24am UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/7 "2019-12-17T09:24:29Z")

</div>

I’ve got the same issue. Refinery manages _Material Score_ and _Platform Area_ (values obtained directly from Truss geometry) correctly, but _Deformation Score_ is not considered, even Dynamo shows results from it.

Any progress?

 ![imagen](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bdeef5b4ce7ec08edd759172f618163670d838d7.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:** [December 17, 2019, 8:30pm UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/8 "2019-12-17T20:30:23Z")

</div>

What version of Refinery, Dynamo, and Dynashape are you using?

---

<div class="post-metadata">

**Author:** ![xempastor](https://avatars.discourse-cdn.com/v4/letter/x/dc4da7/32.png) [@xempastor](https://forum.dynamobim.com/u/xempastor)\
**Post date:** [January 16, 2020, 10:09am UTC](https://forum.dynamobim.com/t/exporting-dynashape-script-to-project-refinery/41411/9 "2020-01-16T10:09:31Z")

</div>

Jacob,

First of all, sorry for the delay  
In my case:  
 ![imagen](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/729fcd6ccb004d3f36c208cfc4dad104b38ebac7.png)

 ![imagen](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/b/db1685629f2cbba205b80a63d476ba4f3143ec4a.png)  
Refinery: from RefineryInstaller-v0.35.0
