Hello,
How can i get IFC Guid? I want to make dictionary with “IfcGUID : Revit ID” and later search via IfcGUID…
doc = DocumentManager.Instance.CurrentDBDocument
elems = IN[0]
myGuids = []
for elem in elems:
myGuids.append(elem.UniqueId)
OUT = myGuids
this script search for an other ID! is there also for IFCGuid?
KR
AndreasGetIfcGUID.dyn (16.1 KB)
@Draxl_Andreas Can you share a sample Revit file with IFC data?
Not sure if this will work. But see if this yields anything.
import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
out = []
for e in UnwrapElement(IN[0]):
BIP = BuiltInParameter.IFC_GUID
ifcguid = (e.get_Parameter(BIP)).AsString()
out.append(ifcguid)
OUT = out
2 Likes
Sorry, file is too big! but thank you
1 Like