# Replace/Remove letters from list

**URL:** <https://forum.dynamobim.com/t/replace-remove-letters-from-list/827>\
**Category:** Packages\
**Created:** [December 17, 2014, 11:18am UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827 "2014-12-17T11:18:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierce\_reynoldson](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pierce\_reynoldson](https://forum.dynamobim.com/u/pierce_reynoldson)\
**Post date:** [December 17, 2014, 11:18am UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827/1 "2014-12-17T11:18:45Z")

</div>

So, I’m creating lists of revit parameters for export to excel. Some of my parameters contain unit notation (m, m^2), which I want removed or replaced with “0”. Unfortunately, all of the replace/remove nodes that I’ve seen are for strings, not lists. I can imagine two approaches:

1. A node that replace/removes items from a list.

2. A method for applying string nodes to lists.

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [December 17, 2014, 11:34am UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827/2 "2014-12-17T11:34:47Z")

</div>

I you want to get rid of units, just use a formula node, like so:

![stripunits](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/9/91b7105d733bc4ee04c46db96bd1825c77b07020.png)

---

<div class="post-metadata">

**Author:** ![pierce\_reynoldson](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pierce\_reynoldson](https://forum.dynamobim.com/u/pierce_reynoldson)\
**Post date:** [December 17, 2014, 11:39am UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827/3 "2014-12-17T11:39:19Z")

</div>

Here’s a picture of the Element.GetParameterValueByName nodes leading up to Create.List.

![Dynamo_Units](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/352b8931244a316b1083c94b992401f6a54a242f.jpg)

&nbsp;

&nbsp;

On a minor note: The parameters come out as metric (except for Area) even if the base file is imperial. Is there a way to convert units globally, or pull unit system from the RVT?

---

<div class="post-metadata">

**Author:** ![pierce\_reynoldson](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pierce\_reynoldson](https://forum.dynamobim.com/u/pierce_reynoldson)\
**Post date:** [December 17, 2014, 11:41am UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827/4 "2014-12-17T11:41:36Z")

</div>

That works! Thank you.

What does the “a” do?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [December 17, 2014, 2:17pm UTC](https://forum.dynamobim.com/t/replace-remove-letters-from-list/827/5 "2014-12-17T14:17:52Z")

</div>

The “a” acts as a variable that can be filled by the input it generates in the Formula node. One of the handy features of the Formula node is that it completely ignores units. That’s why you can use it to strip units.

With regard to your other question about the units of parameters pulled from a Revit element - I am on the 0.7.5 release candidate and everything I receive is in metric.

Generally, units are still a rather tricky subject in Dynamo. Have a look at these threads for more fun with units:

> <https://github.com/DynamoDS/Dynamo/issues/3070>
>
> Dynamo is multiplying all values converting them to meters in my Revit file. Unlike most people I am working in feet...

> <https://github.com/DynamoDS/Dynamo/issues/3420>
>
> I have noticed everything that is modeled in dynamo is in meters.(please correct me if I am wrong) if I change...

> <https://github.com/DynamoDS/Dynamo/issues/2428>
>
> This issue contains a few wishes / feature requests - but mainly I'd just like to understand the reasoning behind some...
