# Set Intersection by IfcGUID, how?

**URL:** <https://forum.dynamobim.com/t/set-intersection-by-ifcguid-how/101768>\
**Category:** Revit\
**Created:** [June 10, 2024, 4:15pm UTC](https://forum.dynamobim.com/t/set-intersection-by-ifcguid-how/101768 "2024-06-10T16:15:40Z")\
**Posts on this page:** 2\
**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:** [June 10, 2024, 4:15pm UTC](https://forum.dynamobim.com/t/set-intersection-by-ifcguid-how/101768/1 "2024-06-10T16:15:40Z")

</div>

Hello,

i have a script (not attached) that works well getting element\_ID from excel. I can use doc.GetElement(by\_Id),

BUT how can i do that via IfcGUID and finaly get the instance ?

(the IfcGUIDs are already backwritten to revit)

 ![PySetInterSectionIFCGUID](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0ecff7dbfbc43fe1fbb595aa51142a19ab8e366b.png)  
[Test\_IfcMatch.xlsx](https://forum.dynamobim.com/uploads/short-url/fPVArZgkeNimDU4Z7iEUz8HE8kS.xlsx) (12.2 KB)

---

<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:** [June 10, 2024, 8:08pm UTC](https://forum.dynamobim.com/t/set-intersection-by-ifcguid-how/101768/2 "2024-06-10T20:08:20Z")

</div>

… i think i got it

 ![PyImportExcelBasedOnIfcGUID](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/9/b951b3e643435b1c43d105388b27ddca5746d327.png)  
[PyImportExcelBasedOnIfcGUID\_V02.dyn](https://forum.dynamobim.com/uploads/short-url/drGonRP6APNkBwOuYzCBGhCPRJz.dyn) (29.3 KB)  
[Test\_orginal\_V01.xls](https://forum.dynamobim.com/uploads/short-url/xZXLgGtSBJXgpd1AlYdXTaGlLgG.xls) (11.5 KB)
