Adds a new CogoPoint at the given location with the specified description information.

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

Syntax

C#
public ObjectId Add(
	Point3d location,
	string desc
)
Visual Basic
Public Function Add ( _
	location As Point3d, _
	desc As String _
) As ObjectId
Visual C++
public:
ObjectId Add(
	Point3d location, 
	String^ desc
)

Parameters

location
Type: Point3d
The location of the new CogoPoint.
desc
Type: System..::..String
The description of the new CogoPoint.

Return Value

The ObjectId of the newly-added CogoPoint.

Examples

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

See Also