Adds a point at the midpoint of a specified link.

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

Syntax

C#
public CalculatedPoint Add(
	CalculatedLink link,
	string code
)
Visual Basic
Public Function Add ( _
	link As CalculatedLink, _
	code As String _
) As CalculatedPoint
Visual C++
public:
CalculatedPoint^ Add(
	CalculatedLink^ link, 
	String^ code
)

Parameters

link
Type: Autodesk.Civil.DatabaseServices..::..CalculatedLink
The link whose midpoint is used to locate the newly added point.
code
Type: System..::..String
The code of the newly added point.

Remarks

This operation only immediately affects the objects those are from the same AppliedAssembly object or got from Baseline subsequently.

Exceptions

ExceptionCondition
[!:System.InvalidOperationException] Thrown when the point collection is not from AppliedAssembly and AppliedSubassembly.
[!:System.ArgumentException] Thrown when:
  • The link is not from the same AppliedAssembly or AppliedSubassemby as the point collection
  • The code is invalid.

See Also