Adds a subassembly to the offset assembly and hooks to the specified point of a subassembly.

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

Syntax

C#
public void AddSubassembly(
	ObjectId subassemblyId,
	Point pointHookTo
)
Visual Basic
Public Sub AddSubassembly ( _
	subassemblyId As ObjectId, _
	pointHookTo As Point _
)
Visual C++
public:
void AddSubassembly(
	ObjectId subassemblyId, 
	Point^ pointHookTo
)

Parameters

subassemblyId
Type: ObjectId
The ObjectId of the source subassembly to be added.
pointHookTo
Type: Autodesk.Civil.DatabaseServices..::..Point
The point to be hooked to.

Exceptions

ExceptionCondition
[!:System.ArgumentException] Thrown when:
  • The specified ObjectId to be added is not a subassembly id, from another data base or already in an assembly.
  • The specified point is not a point of the subassembly in the offset assembly.

See Also