CalculatedPointCollectionAdd Method

Adds a point at the midpoint of a specified link.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntax
public CalculatedPoint Add(
	CalculatedLink link,
	string code
)

Parameters

link  CalculatedLink
The link whose midpoint is used to locate the newly added point.
code  String
The code of the newly added point.

Return Value

CalculatedPoint
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.
Remarks
This operation only immediately affects the objects those are from the same AppliedAssembly object or got from Baseline subsequently.
See Also