- 积分
- 24557
- 明经币
- 个
- 注册时间
- 2004-3-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2015-5-18 23:03:42
|
显示全部楼层
[CommandMethod("t_1")]
public void Test1()
{
Point3dCollection pts = new Point3dCollection { new Point3d(), new Point3d(), new Point3d(1, 1, 0) };
var lst = pts.Cast<Point3d>().Distinct();
var doc = Application.DocumentManager.MdiActiveDocument;
var ed = doc.Editor;
foreach (var pt in lst)
ed.WriteMessage("\nPoint:{0}", pt);
} |
|