Files
xUnitRevit/SampleLibrary/DocFixture.cs
T
2023-03-02 21:52:09 +01:00

23 lines
625 B
C#

using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using xUnitRevitUtils;
namespace SampleLibrary {
public sealed class DocFixture : IDisposable {
public Document Doc { get; set; }
public IList<Element> Walls { get; set; }
public DocFixture() {
var testModel = Utils.GetTestModel("walls.rvt");
Doc = xru.OpenDoc(testModel);
Walls = new FilteredElementCollector(Doc).WhereElementIsNotElementType().OfCategory(BuiltInCategory.OST_Walls).ToElements();
}
public void Dispose() {
}
}
}