Hi
I’m trying to change the linestyle of some filled regions to ‘invisible lines’. I’m using the SetLineStyleId method but am getting an error “1. Solution exception:name ‘FilledRegion’ is not defined”
Is there another library I need to import?
import clr
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import Transaction
clr.AddReference('RhinoInside.Revit')
from RhinoInside.Revit import Revit
doc = Revit.ActiveDBDocument
region = FR
ids = type
with Transaction(doc, "Set Line Style") as t:
t.Start()
for r in region:
FilledRegion.SetLineStyleId(r, ids.Id)
t.Commit()