Files
xUnitRevit/SampleLibrary/DocFixture.cs
T
2023-03-08 11:04:37 +01:00

27 lines
593 B
C#

using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
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()
{
}
}
}