# Wall property "Function"

**URL:** <https://forum.dynamobim.com/t/wall-property-function/11685>\
**Category:** Uncategorized\
**Created:** [May 11, 2017, 5:20am UTC](https://forum.dynamobim.com/t/wall-property-function/11685 "2017-05-11T05:20:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasarnoldsson5732](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@thomasarnoldsson5732](https://forum.dynamobim.com/u/thomasarnoldsson5732)\
**Post date:** [May 11, 2017, 5:20am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/1 "2017-05-11T05:20:22Z")

</div>

Hi.  
I’m exporting the type parameter “Function” to Excel, but all I get is 0, 1 and so on. I want “Interior”, “Exterior” and so on. What am I missing?

Thanks

---

<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:** [May 11, 2017, 5:37am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/2 "2017-05-11T05:37:01Z")

</div>

@thomasarnoldsson5732 Could you show us your graph with values extended.

---

<div class="post-metadata">

**Author:** ![thomasarnoldsson5732](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@thomasarnoldsson5732](https://forum.dynamobim.com/u/thomasarnoldsson5732)\
**Post date:** [May 11, 2017, 5:43am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/3 "2017-05-11T05:43:00Z")

</div>

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/3/e/3e14ceb73047b704b291de22189e77c60da05acb.png)

---

<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:** [May 11, 2017, 5:54am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/4 "2017-05-11T05:54:52Z")

</div>

Inside CodeBlock write this.

“  
Interior: 0;  
Exterior: 1;  
”;

---

<div class="post-metadata">

**Author:** ![Mohammadz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mohammadz/32/22398_2.png) [@Mohammadz](https://forum.dynamobim.com/u/Mohammadz)\
**Post date:** [May 11, 2017, 5:55am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/5 "2017-05-11T05:55:05Z")

</div>

0 & 1 usually represent a Yes/No parameter… i don’t know if that is the case with you but if it is then you can do this

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f82801a2910154bfb04611947cf95b4e9a07839c.png)

---

<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:** [May 11, 2017, 6:02am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/6 "2017-05-11T06:02:15Z")

</div>

Looks like @Mohammadz myself replied at the same time 😄

---

<div class="post-metadata">

**Author:** ![thomasarnoldsson5732](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@thomasarnoldsson5732](https://forum.dynamobim.com/u/thomasarnoldsson5732)\
**Post date:** [May 11, 2017, 9:48am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/8 "2017-05-11T09:48:55Z")

</div>

Works as long as it is just 2 alternatives (Y/N) but here it is 6 alternatives just as @erfajo wrote.

---

<div class="post-metadata">

**Author:** ![thomasarnoldsson5732](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@thomasarnoldsson5732](https://forum.dynamobim.com/u/thomasarnoldsson5732)\
**Post date:** [May 11, 2017, 10:46am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/10 "2017-05-11T10:46:38Z")

</div>

Thanks @erfajo worked great

---

<div class="post-metadata">

**Author:** ![Johannes\_Meiners](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/johannes_meiners/32/9156_2.png) [@Johannes\_Meiners](https://forum.dynamobim.com/u/Johannes_Meiners)\
**Post date:** [May 11, 2017, 11:51am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/11 "2017-05-11T11:51:06Z")

</div>

… and if you don´t like or know python, try this:

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

Johannes

---

<div class="post-metadata">

**Author:** ![Cody\_Winchester](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cody_winchester/32/10369_2.png) [@Cody\_Winchester](https://forum.dynamobim.com/u/Cody_Winchester)\
**Post date:** [August 24, 2018, 7:23pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/12 "2018-08-24T19:23:16Z")

</div>

Hmmm. In version 1.3.1 running in Revit 2018.3.1, the Function parameter appears to not be accessible. I’ve listed the parameters and the “Function” does not appear in the list. Furthermore, attempting to list the parameter values by name yields blank items in the list. What am I missing here? Does this depend on another package to read, or python? Is it resolved in a later build of Dynamo? I’m hoping it doesn’t.

 ![Missing%20Function%20Parameter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11d6a9c7540eb6601deb3789071cd94577b316d4.png)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [August 25, 2018, 2:16am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/13 "2018-08-25T02:16:11Z")

</div>

The parameter name is case-sensitive. Do “Function”, not “function”.

---

<div class="post-metadata">

**Author:** ![Cody\_Winchester](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cody_winchester/32/10369_2.png) [@Cody\_Winchester](https://forum.dynamobim.com/u/Cody_Winchester)\
**Post date:** [August 25, 2018, 11:13pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/14 "2018-08-25T23:13:27Z")

</div>

I thought so too, and had tried both based on what others have posted. Listing of parameters does not show any version of it. Hence, the parameter is missing and orherwise inaccessible from what I can see. Any other advice?

---

<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:** [August 25, 2018, 11:54pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/15 "2018-08-25T23:54:44Z")

</div>

Function is a type parameter, not an instance parameter.

Add an Element.Type node (I prefer the one in the Rhythm package) and you should get what you’re after. Alternatively, you could use a code block like this:

```
WallFunc = a.GetParameterValueByName("Type").GetParameterValueByName("Function");

WallFunc == 0?
    "Exterior":
    WallFunc == 1?
	"Interior":
	WallFunc == 2?
		"Foundation":
		WallFunc == 3?
			"Retaining":
			WallFunc == 4?
				"Soffit":
				"Core-Shaft";

```

---

<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 26, 2018, 6:57pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/16 "2018-08-26T18:57:04Z")

</div>

I would have used the `AsValueString()` method somehow. (There is probably a node for it in some package). Here is an one liner example python:

`OUT = [w.LookupParameter('Function').AsValueString() for w in UnwrapElement(IN[0])]`

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d50d32d563b3f23b5f9887b2b0a48d97c215467a.png)

---

<div class="post-metadata">

**Author:** ![Cody\_Winchester](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/cody_winchester/32/10369_2.png) [@Cody\_Winchester](https://forum.dynamobim.com/u/Cody_Winchester)\
**Post date:** [August 28, 2018, 4:33pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/17 "2018-08-28T16:33:09Z")

</div>

@jacob.small, your code block definition works beautifully. The concept and application of conditionals is clear and concise. Thanks so much!

---

<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:** [August 28, 2018, 5:12pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/18 "2018-08-28T17:12:35Z")

</div>

Glad I could help. 😄

---

<div class="post-metadata">

**Author:** ![BKV\_GPR](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@BKV\_GPR](https://forum.dynamobim.com/u/BKV_GPR)\
**Post date:** [June 23, 2021, 2:45pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/19 "2021-06-23T14:45:27Z")

</div>

digging this one up as I’m stumped on why neither of the three Set Parameter nodes shown here will push the value into the collected Types Function parameter.  
Quantities differ between the two selection methods, and all of the subsequent lists are as expected, but Type Function remains unchanged after running script in dynamo 2.0.3

 ![WallTypes_SetFunction](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/f/1f507b872d4e7c89b5343844da61b41c24dbf475.png)

---

<div class="post-metadata">

**Author:** ![JCupps](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@JCupps](https://forum.dynamobim.com/u/JCupps)\
**Post date:** [December 29, 2021, 6:40pm UTC](https://forum.dynamobim.com/t/wall-property-function/11685/20 "2021-12-29T18:40:43Z")

</div>

Hello @Johannes_Meiners, did this node get removed? I’ve been using it in Dynamo 2.3 but now I am in Dynamo 2.5 and I can’t find it

---

<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 30, 2021, 1:32am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/21 "2021-12-30T01:32:08Z")

</div>

Assuming you are looking for `WallType.Function`, this can be found in the Clockwork package.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [December 30, 2021, 7:48am UTC](https://forum.dynamobim.com/t/wall-property-function/11685/22 "2021-12-30T07:48:41Z")

</div>

or a way with ootb nodes…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/27efd45b0487535f4785f60de2e79e89e4c4f03a.jpeg)

[Next page](https://forum.dynamobim.com/t/wall-property-function/11685.md?page=2)
