Creates a new sample line with specified vertex points.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: 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
Exceptions
Exception | Condition |
---|
[!: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