Adds contours to a surface from entities in an ObjectIdCollection, and minimizes flat areas.

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

Syntax

C#
public SurfaceOperationAddContour AddContours(
	ObjectIdCollection boundaryEntities,
	double midOrdinateDistance,
	double maximumDistance,
	double weedingDistance,
	double weedingAngle,
	SurfaceMinimizeFlatAreaOptions options
)
Visual Basic
Public Function AddContours ( _
	boundaryEntities As ObjectIdCollection, _
	midOrdinateDistance As Double, _
	maximumDistance As Double, _
	weedingDistance As Double, _
	weedingAngle As Double, _
	options As SurfaceMinimizeFlatAreaOptions _
) As SurfaceOperationAddContour
Visual C++
public:
SurfaceOperationAddContour^ AddContours(
	ObjectIdCollection^ boundaryEntities, 
	double midOrdinateDistance, 
	double maximumDistance, 
	double weedingDistance, 
	double weedingAngle, 
	SurfaceMinimizeFlatAreaOptions options
)

Parameters

boundaryEntities
Type: ObjectIdCollection
A collection of ObjectIds used to create contours.
midOrdinateDistance
Type: System..::..Double
When the contour is defined from a polyline with curves, the midOrdinateDistance value is used to tessellate the arcs in the polyline.
maximumDistance
Type: System..::..Double
Specifies the maximum distance between vertices. If the distance between vertices on a contour is greater than the maximumDistance, then points are added along the contour at equal intervals that are less than or equal to the maximumDistance.
weedingDistance
Type: System..::..Double
The distance value for the weeding factor.
weedingAngle
Type: System..::..Double
The angle value for the weeding factor.
options
Type: Autodesk.Civil.DatabaseServices..::..SurfaceMinimizeFlatAreaOptions
Specifies the options for minimizing flat areas on a surface.

Remarks

  1. The weeding factors ignore both vertices that are closer together than the distance factor and vertices that deflect less than the angle factor.
  2. If all the properties in options are false, the parameter is ignored.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. There are invalid ObjectIds in contourEntities.
  2. midOrdinateDistance <= 0.0 , maximumDistance < 0.0, weedingDistance < 0.0 or weedingDistance >= maximumDistance

See Also