Creates a new sample line with specified vertex points.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.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
Exception | Condition |
---|---|
[!:System.ArgumentException] |
Thrown when:
|