23 lines
460 B
C#
23 lines
460 B
C#
|
|
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
using Autodesk.Revit.DB;
|
|||
|
|
|
|||
|
|
using Autodesk.Revit.UI.Selection;
|
|||
|
|
|
|||
|
|
using System.Linq;
|
|||
|
|
|
|||
|
|
namespace Szmedi.Toolkit.RvAssists;
|
|||
|
|
|
|||
|
|
public class SelectTheSameElements(List<Element> eles) : ISelectionFilter
|
|||
|
|
{
|
|||
|
|
public bool AllowElement(Element elem)
|
|||
|
|
{
|
|||
|
|
return eles.Any(ele => elem.GetTypeId() == ele.GetTypeId());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public bool AllowReference(Reference reference, XYZ position)
|
|||
|
|
{
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
}
|