Adds a new CogoPoint at the given location.

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

Syntax

C#
public ObjectId Add(
	Point3d location
)
Visual Basic
Public Function Add ( _
	location As Point3d _
) As ObjectId
Visual C++
public:
ObjectId Add(
	Point3d location
)

Parameters

location
Type: Point3d
The location of the new CogoPoint.

Return Value

The ObjectId of the newly-created CogoPoint.

Remarks

The created CogoPoint's Description is empty.

Examples

CopyC#
1// _civildoc is the active CivilDocument instance.
2// 
3CogoPointCollection cogoPoints = _civildoc.CogoPoints;
4Point3d location = new Point3d(100.0, 150.0, 50.0);
5cogoPoints.Add(location);
CopyVB.NET
1' _civildoc is the active CivilDocument instance.
2'
3Dim cogoPoints As CogoPointCollection = _civildoc.CogoPoints
4Dim location As New Point3d(100.0, 150.0, 50.0)
5cogoPoints.Add(location)

See Also