PointGroupContainsPoint Method

Gets whether the PointGroup contains a CogoPoint with the given point number.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntax
public bool ContainsPoint(
	uint pointNumber
)

Parameters

pointNumber  UInt32
 

Return Value

Boolean
Example
 1// Add some points 
 2// 
 3ObjectId pointId1 = _civildoc.CogoPoints.Add(new Point3d(150, 150, 50), false);
 4ObjectId pointId2 = _civildoc.CogoPoints.Add(new Point3d(250, 250, 250), false);
 5pointGroup.Update();
 6CogoPoint point1 = pointId1.GetObject(OpenMode.ForRead) as CogoPoint;
 7CogoPoint point2 = pointId2.GetObject(OpenMode.ForRead) as CogoPoint;
 8
 9// pointGroup is an existing PointGroup that includes all points with
10// elevation in the range 0-200.
11// 
12write(String.Format("PointGroup contains point 1: {0}\n",
13    pointGroup.ContainsPoint(point1.PointNumber))); // True
14write(String.Format("PointGroup contains point 2: {0}\n",
15    pointGroup.ContainsPoint(point2.PointNumber))); // False
See Also