SampleLineCreate(String, ObjectId, Point2dCollection) Method |
Creates a new sample line with specified vertex points.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
string sampleLineName,
ObjectId sampleLineGroupId,
Point2dCollection points
)
Public Shared Function Create (
sampleLineName As String,
sampleLineGroupId As ObjectId,
points As Point2dCollection
) As ObjectId
public:
static ObjectId Create(
String^ sampleLineName,
ObjectId sampleLineGroupId,
Point2dCollection^ points
)
Parameters
- sampleLineName String
- The name of the newly created sample line.
- sampleLineGroupId ObjectId
- The ObjectId of the sample line group to which the newly created sample line is added.
- points Point2dCollection
- The points used as the vertex of the newly created sample line.
Return Value
ObjectId
The ObjectId of the newly created sample line.
ExceptionsException | 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.
|
Remarks
Besides the specified vertex points, the created sample line has one more vertex, which is the intersection point with the alignment.
See Also