/// <summary> /// 添加顶点 /// </summary> private void AddPoint() { PolyLine.AddOrSetVertexAt(PolyLine.NumberOfVertices, new Point2d(TemPoint2d.X, TemPoint2d.Y), 0, 0, 0); if (NumberOfVertices == 1 && PolyLine.ObjectId == new ObjectId()) { PolyLine.AddToModelSpace(DataBaseTools.DocumentDatabase()); } }