Share

AssemblyCollection.Add(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.280

Syntax

C#

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

VB

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

C++

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

Reference

Was this information helpful?