Unlocks all the points in the PointGroup.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public void UnlockPoints() |
Visual Basic |
---|
Public Sub UnlockPoints |
Visual C++ |
---|
public:
void UnlockPoints() |
Examples
CopyC#
1pointGroup.LockPoints();
2
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));
10}
11
12pointGroup.UnlockPoints();
CopyVB.NET
1pointGroup.LockPoints()
2
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
8 write([String].Format("Point #{0} locked?: {1}" & vbLf, point.PointNumber, point.IsLocked))
9Next
10
11pointGroup.UnlockPoints()
12
See Also