SubassemblyCollectionAdd Method |
Adds a subassembly with the specified name, entity, mid-ordinate distance and link creation option.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntaxpublic ObjectId Add(
string subassemblyName,
ObjectId entityId,
double midOrdinateDist,
LinkCreationType linkCreationOption
)
Public Function Add (
subassemblyName As String,
entityId As ObjectId,
midOrdinateDist As Double,
linkCreationOption As LinkCreationType
) As ObjectId
public:
ObjectId Add(
String^ subassemblyName,
ObjectId entityId,
double midOrdinateDist,
LinkCreationType linkCreationOption
)
Parameters
- subassemblyName String
- Subassembly Name used to create subassembly.
- entityId ObjectId
- Object id of the entity used to create subassembly.
- midOrdinateDist Double
- Mid-ordinate distance used to create subassembly.
- linkCreationOption LinkCreationType
- Link creation option used to create subassembly.
Return Value
ObjectId
ObjectId of created subassembly.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when the subassembly name, mid-ordinate distance or entity id is invalid.
|
Remarks
The valid types for entity used to create subassembly are Polyline, Polyline3d, Polyline2d, Feature, Face, Line, Circle, Arc, Ellipse and Spline.
See Also