Sets the region defined by an existing entity in the drawing.

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

Syntax

C#
public void SetUserSpecifiedPolygonRegionByEntityId(
	ObjectId entityId,
	double midOrdinate
)
Visual Basic
Public Sub SetUserSpecifiedPolygonRegionByEntityId ( _
	entityId As ObjectId, _
	midOrdinate As Double _
)
Visual C++
public:
void SetUserSpecifiedPolygonRegionByEntityId(
	ObjectId entityId, 
	double midOrdinate
)

Parameters

entityId
Type: ObjectId
ObjectId of the entity acting as a region.
midOrdinate
Type: System..::..Double
The default mid-ordinate length used to get region from the entity. If the selected object contains arc segments, each segment is tessellated into chord segments. The length of each chord segment is derived from the specified mid-ordinate distance.

Remarks

A user specified region only takes effect when RegionOption is SurfaceSimplifyRegionType.UserSpecified.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The geometry of entity is not a closed region.
  2. midOrdinate is not a positive value.

See Also