private void renumberPoints(PointGroup group, int baseNumber) { uint[] pointNumbers = group.GetPointNumbers(); int firstNumber = (int)pointNumbers[0]; int factor = baseNumber - firstNumber; _civildoc.CogoPoints.SetPointNumber( ToEnumerableObjectId(group.GetPointNumbers()), factor); group.Update(); }
public static List <CogoPoint> GetCogoPoints(this PointGroup ptGroup) { CivilDocument civDoc = CivilApplication.ActiveDocument; return((from p in ptGroup.GetPointNumbers() select civDoc.CogoPoints.GetPointByPointNumber(p).GetObject(OpenMode.ForRead) as CogoPoint).ToList()); }