Share

CorridorSurfaceMaskCollection.Add(String, ObjectId) Method

Adds a mask with the given mask name and polyline.



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

Syntax

C#

public CorridorSurfaceMask Add(
	string maskName,
	ObjectId polylineId
)

VB

Public Function Add ( 
	maskName As String,
	polylineId As ObjectId
) As CorridorSurfaceMask

C++

public:
CorridorSurfaceMask^ Add(
	String^ maskName, 
	ObjectId polylineId
)

Parameters

maskName  String
Name of the newly created mask.
polylineId  ObjectId
ObjectId of the polyline used to create mask.

Return Value

CorridorSurfaceMask

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  1. The specified mask name or polyline is invalid..
  2. The polyline cannot be used to construct a polygon.
  3. The polygon specified by polyline is self-crossing.

Remarks

Only Autodesk.AutoCAD.DatabaseServices.Polyline, Autodesk.AutoCAD.DatabaseServices.Polyline2d and Autodesk.AutoCAD.DatabaseServices.Polyline3d are supported.

See Also

Reference

Was this information helpful?