-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSelectionTools.cs
More file actions
35 lines (32 loc) · 1.11 KB
/
Copy pathSelectionTools.cs
File metadata and controls
35 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
namespace DotNetARX
{
/// <summary>
/// 选择操作类
/// </summary>
public static class SelectionTools
{
/// <summary>
/// 选择过一点的所有实体
/// </summary>
/// <param name="ed">命令行对象</param>
/// <param name="point">点</param>
/// <param name="filter">选择过滤器</param>
/// <returns>返回过指定点的所有实体</returns>
public static PromptSelectionResult SelectAtPoint(this Editor ed, Point3d point, SelectionFilter filter)
{
return ed.SelectCrossingWindow(point, point, filter);
}
/// <summary>
/// 选择过一点的所有实体
/// </summary>
/// <param name="ed">命令行对象</param>
/// <param name="point">点</param>
/// <returns>返回过指定点的所有实体</returns>
public static PromptSelectionResult SelectAtPoint(this Editor ed, Point3d point)
{
return ed.SelectCrossingWindow(point, point);
}
}
}