Share

CogoPointCollection.Remove(ObjectId) Method

Removes the specified CogoPoint from the collection.



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

Syntax

C#

public void Remove(
	ObjectId pointId
)

VB

Public Sub Remove ( 
	pointId As ObjectId
)

C++

public:
void Remove(
	ObjectId pointId
)

Parameters

pointId  ObjectId
 

Exceptions

ExceptionCondition
ArgumentException Thrown when the remove operation fails.

Example

C#

 1// _civildoc is the active CivilDocument instance.
 2CogoPointCollection cogoPoints = _civildoc.CogoPoints;
 3
 4// remove a single point by number:
 5cogoPoints.Remove(pointNumber);
 6
 7// remove a single point by ObjectId:
 8cogoPoints.Remove(pointId2);
 9
10// remove all points:
11cogoPoints.Clear();

VB

 1' _civildoc is the active CivilDocument instance.
 2Dim cogoPoints As CogoPointCollection = _civildoc.CogoPoints
 3
 4' remove a single point by number:
 5cogoPoints.Remove(pointNumber)
 6
 7' remove a single point by ObjectId:
 8cogoPoints.Remove(pointId2)
 9
10' remove all points:

See Also

Reference

Was this information helpful?