PointGroupUnlockPoints Method |
Unlocks all the points in the PointGroup.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntaxpublic void UnlockPoints()
public:
void UnlockPoints()
Example 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();
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
No code example is currently available or this language may not be supported.
See Also