Hello,
i stuck for any reason… UnwrapElement did not change the result.
import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
#collector
collector = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls)
all_elements = collector.WhereElementIsNotElementType().ToElements()
walls = [i for i in all_elements if i.Name.Contains("STB")]
out = []
for e in walls:
BIP = BuiltInParameter.IFC_GUID
ifcguid = (e.get_Parameter(BIP)).AsString()
out.append(ifcguid)
OUT = out
thats any more the solution
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
KR
Andreas