添加项目文件。
This commit is contained in:
20
HYDragCurveJigPro/CurveFilter.cs
Normal file
20
HYDragCurveJigPro/CurveFilter.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user