FeatureLineCreate(String, ObjectId) Method |
Creates a FeatureLine from the specified Line, Arc, Polyline, Polyline2d or Polyline3d.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
string featurelineName,
ObjectId idCreatedFrom
)
Public Shared Function Create (
featurelineName As String,
idCreatedFrom As ObjectId
) As ObjectId
public:
static ObjectId Create(
String^ featurelineName,
ObjectId idCreatedFrom
)
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.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The feature line name is duplicated.
- The idCreatedFrom is not an ObjectId of Line, Arc, Polyline, Polyline2d or Polyline3d.
- The object and site are not in the same database.
- The object geometry is invalid for feature line.
|
See Also