- 积分
- 3387
- 明经币
- 个
- 注册时间
- 2011-6-8
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
[code=csharp][/code]public static PromptSelectionResult SelectOnLine(this Editor ed, Line3d line)
{
Point3d p1 = line.StartPoint;
Point3d p2 = line.EndPoint;
Point3d[] ps = { p1, p1, p2, p2 };
Point3dCollection pts = new Point3dCollection(ps);
return ed.SelectCrossingPolygon(pts);
}
在选择的时候,选择了直线,不知道怎样把Entity类型变成Line3d ,请教 |
|