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

Adds an Assembly object to the AssemblyCollection.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0

Syntax

C#

public ObjectId Add(
	string assemblyName,
	AssemblyType type,
	Point3d location,
	ObjectId styleId,
	ObjectId codeSetStyleId
)

Visual Basic

Public Function Add ( _
	assemblyName As String, _
	type As AssemblyType, _
	location As Point3d, _
	styleId As ObjectId, _
	codeSetStyleId As ObjectId _
) As ObjectId

Visual C++

public:
ObjectId Add(
	String^ assemblyName, 
	AssemblyType type, 
	Point3d location, 
	ObjectId styleId, 
	ObjectId codeSetStyleId
)

Parameters

assemblyName
Type: System.String
Name of the Assembly to be created.
type
Type: Autodesk.Civil.DatabaseServices.AssemblyType
AssemblyType of the Assembly to be created.
location
Type: Point3d
Location of the created Assembly.
styleId
Type: ObjectId
ObjectId of the created Assembly's style.
codeSetStyleId
Type: ObjectId
ObjectId of the created Assembly's codeSetStyle.

Exceptions

ExceptionCondition
System.ArgumentException Thrown when assemblyName or styleId or codeSetStyleId is invalid.

See Also