Unlocks all the points in the PointGroup.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public void UnlockPoints()
Visual Basic
Public Sub UnlockPoints
Visual C++
public:
void UnlockPoints()

Examples

CopyC#
 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
CopyVB.NET
 1pointGroup.LockPoints()
 2' Note: LockPoints() does not change the state of PointGroup.IsLocked:
 3write("PointGroup IsLocked: " + pointGroup.IsLocked & vbLf)
 4For Each pointNumber As UInteger In pointGroup.GetPointNumbers()
 5  Dim pointId As ObjectId = _civildoc.CogoPoints.GetPointByPointNumber(pointNumber)
 6  Dim point As CogoPoint = TryCast(pointId.GetObject(OpenMode.ForRead), CogoPoint)
 7  ' True
 8  write([String].Format("Point #{0} locked?: {1}" & vbLf, point.PointNumber, point.IsLocked))
 9Next
10
11pointGroup.UnlockPoints()
12' all points are now IsLocked==False

See Also