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.4.2516.0
Syntax
C# |
---|
public ObjectId Add(
string subassemblyName,
ObjectId entityId,
double midOrdinateDist,
LinkCreationType linkCreationOption
) |
Visual Basic |
---|
Public Function Add ( _
subassemblyName As String, _
entityId As ObjectId, _
midOrdinateDist As Double, _
linkCreationOption As LinkCreationType _
) As ObjectId |
Visual C++ |
---|
public:
ObjectId Add(
String^ subassemblyName,
ObjectId entityId,
double midOrdinateDist,
LinkCreationType linkCreationOption
) |
Parameters
- subassemblyName
- Type: System..::..String
Subassembly Name used to create subassembly.
- entityId
- Type: ObjectId
Object id of the entity used to create subassembly.
- midOrdinateDist
- Type: System..::..Double
Mid-ordinate distance used to create subassembly.
- linkCreationOption
- Type: Autodesk.Civil..::..LinkCreationType
Link creation option used to create subassembly.
Return Value
ObjectId of created subassembly.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when the subassembly name, mid-ordinate distance or entity id is invalid.
|
See Also