- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I attempted to obtain cureveloop from cureves who were experiencing this issue. Can anyone assist me in resolving this issue?here my code in below
TransactionManager.Instance.EnsureInTransaction(doc)
view = doc.ActiveView.Id
setting = AreaVolumeSettings.GetAreaVolumeSettings(doc)
options = SpatialElementBoundaryOptions()
b_option = setting.GetSpatialElementBoundaryLocation(SpatialElementType.Room)
options.SpatialElementBoundaryLocation = b_option
rooms = FilteredElementCollector(doc,view).OfCategory(BuiltInCategory.OST_Rooms).WhereElementIsNotElementType().ToElements()
curvelist = []
curveilist = List[CurveLoop]()
for room in rooms:
curve = CurveLoop()
for bound in room.GetBoundarySegments(options):
for i in bound:
curve.Append(i.GetCurve())
curvelist.append(curve)
curveilist.Add(curve)
TransactionManager.Instance.TransactionTaskDone()
OUT = curvelist
Solved! Go to Solution.