FeatureLineCreate(String, ObjectId, ObjectId) Method

Creates a FeatureLine from the specified Line, Arc, Polyline, Polyline2d or Polyline3d.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	string featurelineName,
	ObjectId idCreatedFrom,
	ObjectId siteId
)

Parameters

featurelineName  String
Name of the created FeatureLine, and this name can be null or empty string for creating an unnamed feature line.
idCreatedFrom  ObjectId
The ObjectId of specified Line, Arc, Polyline, Polyline2d or Polyline3d created from.
siteId  ObjectId
The ObjectId of Site.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. The feature line name is duplicated.
  2. The idCreatedFrom is not an ObjectId of Line, Arc, Polyline, Polyline2d or Polyline3d.
  3. The siteId is not an ObjectId of Site.
  4. The object and site are not in the same database.
  5. The object geometry is invalid for feature line.
See Also