PointGroupLockPoints Method

Locks all the points in the PointGroup.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntax
public void LockPoints()
Example
 1pointGroup.LockPoints();
 2// Note: LockPoints() does not change the state of PointGroup.IsLocked:
 3write("PointGroup IsLocked: " + pointGroup.IsLocked + "\n");
 4foreach (uint pointNumber in pointGroup.GetPointNumbers())
 5{
 6    ObjectId pointId = _civildoc.CogoPoints.GetPointByPointNumber(pointNumber);
 7    CogoPoint point = pointId.GetObject(OpenMode.ForRead) as CogoPoint;
 8    write(String.Format("Point #{0} locked?: {1}\n",
 9        point.PointNumber, point.IsLocked)); // True
10}
11
12pointGroup.UnlockPoints(); // all points are now IsLocked==False
See Also