Share

SubassemblyCollection.ImportSubassembly Method

Imports a Subassembly object from an atc file specified by its itemId.



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

Syntax

C#

public ObjectId ImportSubassembly(
	string subassemblyName,
	string atcFilePath,
	string itemId,
	Point3d location
)

VB

Public Function ImportSubassembly ( 
	subassemblyName As String,
	atcFilePath As String,
	itemId As String,
	location As Point3d
) As ObjectId

C++

public:
ObjectId ImportSubassembly(
	String^ subassemblyName, 
	String^ atcFilePath, 
	String^ itemId, 
	Point3d location
)

Parameters

subassemblyName  String
Subassembly Name used to create subassembly.
atcFilePath  String
File path of the atc file.
itemId  String
The itemId of the Subassembly in atc file. It should not include the brackets.
location  Point3d
The location of the new created subassembly.

Return Value

ObjectId

Exceptions

ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The subassemblyName is invalid or an Subassembly with the name is already existing.
  • The atc File Path is invalid or the file doesn't exist.
  • The atc file is invaild and failed to load it.
  • itemId is invalid or there is no Subassembly in the atc file has the itemId.

See Also

Reference

Was this information helpful?