Related to the topic regarding Filled Region From Room Boundary, but as the title expresses from input curves/list of curves. Below is a python node I am working towards but having minor hiccups on finishing it. Any help would be greatly appreciated. Thanks!
import clr
clr.AddReference(“RevitAPI”)
from Autodesk.Revit.DB import *
clr.AddReference(“RevitServices”)
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
curveLoopList = IN[0]
filledRegionName = IN[1]
for fr in FilteredElementCollector(doc).OfClass(FilledRegionType):
if Element.Name.GetValue(fr) == filledRegionName:
filledRegion = fr
break
viewId = doc.ActiveView.Id
TransactionManager.Instance.EnsureInTransaction(doc)
regions=[]
region = FilledRegion.Create(doc,filledRegion.Id,viewId, curveLoopList)
regions.append(region)
TransactionManager.Instance.TransactionTaskDone()
OUT = regions