# Property Lines, access values?

**URL:** <https://forum.dynamobim.com/t/property-lines-access-values/54860>\
**Category:** Developers\
**Created:** [September 7, 2020, 2:08pm UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860 "2020-09-07T14:08:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 7, 2020, 2:08pm UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/1 "2020-09-07T14:08:10Z")

</div>

![2020-09-07_16h04_04](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/3/b371157a4342d30b2e5ffc2c534bfed1703d9c82.png)  
Hello,

When access a value that i don`t know what it is, can i do just trail and error (AsString, AsDouble,…)  
How about Units like (m²)

```
OUT = UnwrapElement(IN[0]).get_Parameter(BuiltInParameter.PROPERTY_AREA)#????

```

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [September 7, 2020, 2:40pm UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/2 "2020-09-07T14:40:36Z")

</div>

Hi @Draxl_Andreas,

Use the Element Parameters Properties node :

 ![Element Parameters Properties](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/2/62e3a28bb569ee8de93053b42da8519ff24be3ce.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 8, 2020, 6:59am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/3 "2020-09-08T06:59:45Z")

</div>

Thank you! it could help to find correct API-Vocabulary.

hmmmm 😕

```
OUT = UnitUtils.ConvertFromInternalUnits(UnwrapElement(IN[0]).get_Parameter(BuiltInParameter.PROPERTY_AREA).AsDouble(),DisplayUnitType.DUT_SQUARE_METERS)

```

it is a bit of…

![2020-09-08_08h59_25](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/7/97bb73b2a23ac64e63490ddae1d474fbc389e6bd.png)

---

<div class="post-metadata">

**Author:** ![maciek.glowka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/maciek.glowka/32/70695_2.png) [@maciek.glowka](https://forum.dynamobim.com/u/maciek.glowka)\
**Post date:** [September 8, 2020, 8:54am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/4 "2020-09-08T08:54:11Z")

</div>

Hi,

it might be that your parameter is null (for example: not found in the element)  
After get\_parameter it is worth checking if you’ve got the correct parameter object.  
This worked for me:

```
import clr
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
#The inputs to this node will be stored as a list in the IN variables.
e = UnwrapElement(IN[0])

p = e.get_Parameter(BuiltInParameter.PROPERTY_AREA)
if p:
	output = UnitUtils.ConvertFromInternalUnits(p.AsDouble(),DisplayUnitType.DUT_SQUARE_METERS)
else:
	output = None

#Assign your output to the OUT variable.
OUT = output

```

Also make sure that you are selecting a chain of property lines - rather then a single one. Single property line won’t have an area parameter.

![obraz](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/89ad703d440efef38890d2d0c6fff1597961eef9.png)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 8, 2020, 9:17am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/5 "2020-09-08T09:17:05Z")

</div>

Thank you very much! I learn always a little bit more

![2020-09-08_11h15_44](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/ca482376f95882f123419a053f820cdf50e497e9.png)

```
x.get_Parameter()

```

Can i find a list of these “constructors” - at the APIDocs i can`t find get_Parameter, when i use dir() than i find ` **GetParameters** ` or **GetParameterByValueAndName** or is **get\_Parameter** from a other library or a Python-methode?

KR

Andreas

---

<div class="post-metadata">

**Author:** ![maciek.glowka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/maciek.glowka/32/70695_2.png) [@maciek.glowka](https://forum.dynamobim.com/u/maciek.glowka)\
**Post date:** [September 8, 2020, 9:34am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/6 "2020-09-08T09:34:59Z")

</div>

‘get\_parameter’ is kind of hidden - don’t ask me why…but it is a Revit API function (also in c#)  
But most of the methods and properties are fortunately correctly described in api docs

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 8, 2020, 10:47am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/7 "2020-09-08T10:47:42Z")

</div>

“hidden” 🙂

That is for me as rooky a important information!

---

<div class="post-metadata">

**Author:** ![maciek.glowka](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/maciek.glowka/32/70695_2.png) [@maciek.glowka](https://forum.dynamobim.com/u/maciek.glowka)\
**Post date:** [September 8, 2020, 10:53am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/8 "2020-09-08T10:53:19Z")

</div>

🙂  
I am no trained coder myself, so have no idea how it exactly works…but for ‘get\_parameter’ you will not get an autocompletion/hint either, when writing Revit macros in C#.

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [September 8, 2020, 7:55pm UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/9 "2020-09-08T19:55:03Z")

</div>

Hello  
the **get\_** prefix refers to a getter (Property).  
A property getter function is generated when an property takes an argument ( .NET implementation)

example get\_BoundingBox(View)

 ![get_hidden](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/78c7c10538a003094032e6a72298623c536aafb6.jpeg)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 9, 2020, 7:08am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/10 "2020-09-09T07:08:34Z")

</div>

I will test it! `get_` Do you recomment also learn “.NET” actually what can I learn regarding that?  
I touch this topic just during installing Autodesk-Products (Framework Issues)

 ![2020-09-09_09h33_18](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1bc8428c14deefe4de67951cb063c1a8d32b54b7.png)

---

<div class="post-metadata">

**Author:** ![Thomas3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas3/32/102896_2.png) [@Thomas3](https://forum.dynamobim.com/u/Thomas3)\
**Post date:** [September 9, 2020, 10:04am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/11 "2020-09-09T10:04:01Z")

</div>

.NET is just the framework developed by Microsoft. For example C# is a .NET language. I think it helps a lot, if you do a C# video course to learn the basics of the C# syntax. If you have already knowledge of Python, you can compare it. And then it gets easier to understand the Revit API examples. In my opinion, Autodesk should extend the Revit API documentation with Python, to support the Dynamo Community

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [September 9, 2020, 11:02am UTC](https://forum.dynamobim.com/t/property-lines-access-values/54860/12 "2020-09-09T11:02:48Z")

</div>

I think also, like a dictionary, you have a word - antonimo, synonimo - at least to have one example.
