Inserts an unassigned subassembly after a subassembly in the assembly and hooks to the specified point.

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

Syntax

C#
public void InsertSubassemblyAfter(
	ObjectId subassemblyId,
	Point pointHookTo
)
Visual Basic
Public Sub InsertSubassemblyAfter ( _
	subassemblyId As ObjectId, _
	pointHookTo As Point _
)
Visual C++
public:
void InsertSubassemblyAfter(
	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.

Remarks

This method also can be used to insert a subassembly after the subassembly to which no subassembly is hooked.

Exceptions

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

See Also