# Pile loads in Revit using Dynamo / excel

**URL:** <https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [March 20, 2018, 3:56pm UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246 "2018-03-20T15:56:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_WH](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Matt\_WH](https://forum.dynamobim.com/u/Matt_WH)\
**Post date:** [March 20, 2018, 3:56pm UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/1 "2018-03-20T15:56:21Z")

</div>

Longtime lurker, first time poster here 🙂

I’ve been trying to create a script that recognises pile (nested within pilecap family) marks, then matches them to an excel sheet with corresponding loads, for 5 different load cases. For some reason it doesn’t seem to recognise the new parameters I’ve added to hold these values - the script seems to work fine if I change the parameter to “Comment”, so I’m assuming there is either something wrong with the parameter itself or I’m missing something in the script.

For clarity, I’m currently using an Instance Project Parameter, I have tried a shared parameter but it produces the same results.

I’ve been messing about with Dynamo on/off for a few months, still trying to get my bearings. Any help would be appreciated.

 ![Pilecaps%20004](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4bff3786a60c41712957d92ef7e212e9c88b2b82.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:** [March 20, 2018, 7:17pm UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/2 "2018-03-20T19:17:45Z")

</div>

What is the error you’re seeing?

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [March 21, 2018, 1:16am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/3 "2018-03-21T01:16:02Z")

</div>

is the “Gk (Dead)” parameter a text type ?  
as opposed to a number, integer, length etc

Andrew

---

<div class="post-metadata">

**Author:** ![Matt\_WH](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Matt\_WH](https://forum.dynamobim.com/u/Matt_WH)\
**Post date:** [March 21, 2018, 8:43am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/4 "2018-03-21T08:43:58Z")

</div>

“Warning: Element.SetParameterByName operation failed.  
The parameter’s storage type is not a string.”

---

<div class="post-metadata">

**Author:** ![Matt\_WH](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Matt\_WH](https://forum.dynamobim.com/u/Matt_WH)\
**Post date:** [March 21, 2018, 8:58am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/5 "2018-03-21T08:58:22Z")

</div>

Andrew, here’s a screenshot of the parameter:

 ![Pilecap%20Parameter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/239514d5541eeccbbcc361cb2a4d4e742a0043c9.png)

Thanks for the response guys.

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [March 21, 2018, 9:05am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/6 "2018-03-21T09:05:54Z")

</div>

Why exactly are you sending in a string instead of a number?

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [March 21, 2018, 9:09am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/7 "2018-03-21T09:09:18Z")

</div>

so this means you are trying to send text to a force (numeric) parameter  
(like a square peg in a round hole)

You need to either change your Dynamo graph to send a numeric value, or change the parameter to be a text type

---

<div class="post-metadata">

**Author:** ![Matt\_WH](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Matt\_WH](https://forum.dynamobim.com/u/Matt_WH)\
**Post date:** [March 21, 2018, 11:44am UTC](https://forum.dynamobim.com/t/pile-loads-in-revit-using-dynamo-excel/20246/8 "2018-03-21T11:44:43Z")

</div>

I think I was looking at it for too long and couldn’t see the wood for the trees!

I changed the parameter and it now works!

Thanks.
