Files
speckle-sharp-connectors/Connectors/Revit/Speckle.Connectors.RevitShared/HostApp/Elements.cs
T
2024-07-04 11:56:34 +01:00

13 lines
327 B
C#

using Autodesk.Revit.DB;
namespace Speckle.Connectors.Revit.HostApp;
// POC: is this really better than injection? :/
public static class Elements
{
public static IEnumerable<Element> GetElements(this Document doc, IEnumerable<string> objectIds)
{
return objectIds.Select(doc.GetElement).Where(x => x != null);
}
}