Creates a new sample line with specified vertex points.

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

Syntax

C#
public static ObjectId Create(
	string sampleLineName,
	ObjectId sampleLineGroupId,
	Point2dCollection points
)
Visual Basic
Public Shared Function Create ( _
	sampleLineName As String, _
	sampleLineGroupId As ObjectId, _
	points As Point2dCollection _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	String^ sampleLineName, 
	ObjectId sampleLineGroupId, 
	Point2dCollection^ points
)

Parameters

sampleLineName
Type: System..::..String
The name of the newly created sample line.
sampleLineGroupId
Type: ObjectId
The ObjectId of the sample line group to which the newly created sample line is added.
points
Type: Point2dCollection
The points used as the vertex of the newly created sample line.

Return Value

The ObjectId of the newly created sample line.

Remarks

Besides the specified vertex points, the created sample line has one more vertex, which is the intersection point with the alignment.

Exceptions

ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The specified sample line name or sample line group id is invalid.
  • Count of points is less than 2.
  • Cannot get intersection point on alignment and project end points on alignment orthogonally.

See Also