21 lines
520 B
C#
21 lines
520 B
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|