Files
RevitArchive/HYDragCurveJigPro/CurveFilter.cs

21 lines
520 B
C#
Raw Normal View History

2026-02-23 14:58:05 +08:00
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using System;
namespace HYDragCurveJig
{
public class CurveFilter : ISelectionFilter
{
public bool AllowElement(Element elem)
{
return elem.GetType() == typeof(ModelLine) || elem.GetType() == typeof(ModelArc) || elem.GetType() == typeof(DetailLine) || elem.GetType() == typeof(DetailArc);
}
public bool AllowReference(Reference reference, XYZ pos)
{
return false;
}
}
}