SubassemblyCollectionAdd Method

Adds a subassembly with the specified name, entity, mid-ordinate distance and link creation option.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
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.
Exceptions
ExceptionCondition
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