# Shared Parameter Value by Guid

**URL:** <https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [February 19, 2024, 9:18am UTC](https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222 "2024-02-19T09:18:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huettig](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Huettig](https://forum.dynamobim.com/u/Huettig)\
**Post date:** [February 19, 2024, 9:18am UTC](https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222/1 "2024-02-19T09:18:37Z")

</div>

Hi there,

this has to be easy,  
but im really struggeling to find the parameter value of a shared parameter via dynamo/python.

in c# i would do it like this: “window.get\_Parameter(new Guid(“c54e24d6-cb57-4fa2-a246-f65bcc1c8b3d”)).AsValueString())” but i cant for the love of god make it work in dynamo.

is there a package solution?

here is it with all parameters of a element.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/4/2461ccdf6d01aeaf443c6e912772d25a11ed865e.png)

Can i just read the one specific value?

This is a python try based on LookupParameter:

````auto

import sys
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

TransactionManager.Instance.EnsureInTransaction(doc)

windows= UnwrapElement(IN[0])
zuordnung_list = []

for window in windows:
    zuordnung = window.LookupParameter("Zuordnung Haus").AsString()
    zuordnung_list.append(zuordnung)
   
TransactionManager.Instance.TransactionTaskDone()

OUT = zuordnung_list```
````

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [February 19, 2024, 9:44am UTC](https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222/2 "2024-02-19T09:44:27Z")

</div>

````auto
import sys
import clr
clr.AddReference('ProtoGeometry')
import System
from Autodesk.DesignScript.Geometry import *

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

TransactionManager.Instance.EnsureInTransaction(doc)

windows= UnwrapElement(IN[0])
zuordnung_list = []

for window in windows:
    zuordnung = window.get_Parameter(System.Guid(“c54e24d6-cb57-4fa2-a246-f65bcc1c8b3d”)).AsString()
    zuordnung_list.append(zuordnung)
   
TransactionManager.Instance.TransactionTaskDone()

OUT = zuordnung_list```

````

That should work

---

<div class="post-metadata">

**Author:** ![Huettig](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Huettig](https://forum.dynamobim.com/u/Huettig)\
**Post date:** [February 19, 2024, 9:53am UTC](https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222/3 "2024-02-19T09:53:34Z")

</div>

Thank You.

Tested and working.  
It really was simple 😃  
You dont want to guess how long i was trying to get this to work myself 😅

Thank You again, this really helps!

---

<div class="post-metadata">

**Author:** ![AntonioRojas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/antoniorojas/32/96581_2.png) [@AntonioRojas](https://forum.dynamobim.com/u/AntonioRojas)\
**Post date:** [October 8, 2025, 7:57pm UTC](https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222/4 "2025-10-08T19:57:15Z")

</div>

Transaction is not needed since you are not doing any modifications on the Revit model.

So maybe you can simplify doing this.

```auto
import clr
clr.AddReference('RevitServices')
clr.AddReference('RevitAPI')

from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
import System

# Documento actual
doc = DocumentManager.Instance.CurrentDBDocument

# Entradas
elements = UnwrapElement(IN[0])
guids = IN[1] # lista de strings de GUID

# Convertir strings a objetos System.Guid
guid_objs = [System.Guid(g) for g in guids]

# Recorrer elementos y GUIDs
result = []
for el in elements:
    values = []
    for g in guid_objs:
        p = el.get_Parameter(g)
        if p:
            values.append(p.AsString())
        else:
            values.append(None)
    result.append(values)

OUT = result

```

Here is the documentation where the method  
`e.get_Parameter(guid)`

cames from,

Is supper hard to get over the soluction, I’ve spend to much time trying.  
[  
https://forum.dynamobim.com/t/shared-parameter-value-by-guid/98222/4?u=antoniorojas](https://www.revitapidocs.com/2019/0cf342ef-c64f-b0b7-cbec-da8f3428a7dc.htm)

Hope it helps
