Hi!!!
I need GetSpatialElementBoundaryLocation by Element… But Python gives an error message.
what am I doing wrong?
import clr
clr.AddReference(‘RevitAPI’)
import Autodesk
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *from System.Collections.Generic import *
import System
clr.AddReference(‘System.Core’)
clr.ImportExtensions(System.Linq)import math
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManagerelements = UnwrapElement(IN[0])
value =
for i in elements:
value.append(i.GetSpatialElementBoundaryLocation(SpatialElementType.Room))
OUT = value