Share

SubassemblyCollection.ImportSACSubassembly Method

Import a subassembly object from a SAC PKT file.



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

Syntax

C#

public ObjectId ImportSACSubassembly(
	string subassemblyName,
	string pktFilePath,
	Point3d location
)

VB

Public Function ImportSACSubassembly ( 
	subassemblyName As String,
	pktFilePath As String,
	location As Point3d
) As ObjectId

C++

public:
ObjectId ImportSACSubassembly(
	String^ subassemblyName, 
	String^ pktFilePath, 
	Point3d location
)

Parameters

subassemblyName  String
Subassembly name used to create subassembly.
pktFilePath  String
File path of the pkt file.
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 file in the path is not a valid PKT file created by Subassembly Composer.

See Also

Reference

Was this information helpful?