Share

CogoPointCollection.Add(Point3d, String, Boolean) Method

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



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

Syntax

C#

public ObjectId Add(
	Point3d location,
	string desc,
	bool useNextPointNumSetting
)

VB

Public Function Add ( 
	location As Point3d,
	desc As String,
	useNextPointNumSetting As Boolean
) As ObjectId

C++

public:
ObjectId Add(
	Point3d location, 
	String^ desc, 
	bool useNextPointNumSetting
)

Parameters

location  Point3d
The location of the new CogoPoint.
desc  String
The description of the new CogoPoint.
useNextPointNumSetting  Boolean
 

Return Value

ObjectId
The ObjectId of the newly-added CogoPoint.

Example

C#

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", false);

VB

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

Reference

Was this information helpful?