AssemblyCollectionAdd(String, AssemblyType, Point3d, ObjectId, ObjectId) Method

Adds an Assembly object to the AssemblyCollection.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public ObjectId Add(
	string assemblyName,
	AssemblyType type,
	Point3d location,
	ObjectId styleId,
	ObjectId codeSetStyleId
)

Parameters

assemblyName  String
Name of the Assembly to be created.
type  AssemblyType
AssemblyType of the Assembly to be created.
location  Point3d
Location of the created Assembly.
styleId  ObjectId
ObjectId of the created Assembly's style.
codeSetStyleId  ObjectId
ObjectId of the created Assembly's codeSetStyle.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when assemblyName or styleId or codeSetStyleId is invalid.
See Also