# Electrical Voltage Parameters - Need help with Voltage Values

**URL:** <https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662>\
**Category:** Revit\
**Created:** [August 16, 2016, 3:02pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662 "2016-08-16T15:02:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shane\_Evens](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Shane\_Evens](https://forum.dynamobim.com/u/Shane_Evens)\
**Post date:** [August 16, 2016, 3:02pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/1 "2016-08-16T15:02:31Z")

</div>

Hello,  
I am working on an electrical calculation that pulls data from shared and system parameters from “Electrical Circuits” category. Dynamo is able to pull all of the necessary information, I am able to process everything I need, however I cannot get the resulting voltage to place without converting:

Example: Resulting voltage to be placed in “TP DYN - ACCUM VOLT DROP” shared parameter reports as 4.19V in Dynamo (correct value) and when looking at the schedule in Revit, it reads 0.4V. Same with the sample circuit voltage I pulled reads “5166.67…” for 480V.

I am quite new to Dynamo, does anyone know if I am overlooking how Dynamo reads voltage / conversions?

Thank you!

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/eaafb841b16d0bd1feae42fe220c888df7196b9f.JPG)

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/2/2ce08a8635f146f544aa10260bdee976907745df.JPG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [August 16, 2016, 3:18pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/2 "2016-08-16T15:18:17Z")

</div>

Hi Shane,  
There is a custom node from “Lunch Box” package called “LunchBoxGetParameter” use that node to get actual values 480 V.

---

<div class="post-metadata">

**Author:** ![Shane\_Evens](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Shane\_Evens](https://forum.dynamobim.com/u/Shane_Evens)\
**Post date:** [August 16, 2016, 3:51pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/3 "2016-08-16T15:51:25Z")

</div>

That worked perfectly for reading the values, Is there a known way to now place number values to an “Electrical Potential” type parameter in Revit?

The one I am struggling with is the 4.19 number calculated in Dynamo that needs to get back to Revit as 4.19V.

Thank you!

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [August 16, 2016, 5:06pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/4 "2016-08-16T17:06:31Z")

</div>

Add code block and do the below changes before “Element.SetParameter” node.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/fa3238a8630dd77e3a82c56a8a33a5a2ad051668.JPG)

---

<div class="post-metadata">

**Author:** ![Shane\_Evens](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Shane\_Evens](https://forum.dynamobim.com/u/Shane_Evens)\
**Post date:** [August 17, 2016, 6:47pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/5 "2016-08-17T18:47:44Z")

</div>

Thanks again.  
From my testing, the multiplier does not seem to be a constant for different voltages. My solution is not ideal, but what I ended up doing is making the parameter unit-less in Revit and used a calculated value to convert to volts (multiplied by a 1V parameter) and divide out for resulting percent in Revit. If anyone knows of something that works with voltage units, I am sure we will end up running into this issue again without an available work-around.

---

<div class="post-metadata">

**Author:** ![Einar\_Raknes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/einar_raknes/32/8566_2.png) [@Einar\_Raknes](https://forum.dynamobim.com/u/Einar_Raknes)\
**Post date:** [August 17, 2016, 7:38pm UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/6 "2016-08-17T19:38:56Z")

</div>

You can try to convert the values with a python node with this content:

```
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

OUT = UnitUtils.ConvertFromInternalUnits(IN[0],DisplayUnitType.DUT_VOLTS)
```

---

<div class="post-metadata">

**Author:** ![chueb](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@chueb](https://forum.dynamobim.com/u/chueb)\
**Post date:** [February 11, 2018, 2:15am UTC](https://forum.dynamobim.com/t/electrical-voltage-parameters-need-help-with-voltage-values/5662/7 "2018-02-11T02:15:37Z")

</div>

Read this for issues with Voltage and other units in Revit.

> **[Voltage Units](http://thebuildingcoder.typepad.com/blog/2010/06/voltage-units.html)**
>
> The last day before DevCamp! I am happy to note that the articles on grabbing a webcam image and displaying it on a Revit element face were so popular ... I will be demonstrating that and other samples using the Idling event and modeless dialogues at...
