Share

CalculatedLinkCollection.Add Method

Adds a link with two specified points.



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

Syntax

C#

public CalculatedLink Add(
	CalculatedPoint point1,
	CalculatedPoint point2,
	string code
)

VB

Public Function Add ( 
	point1 As CalculatedPoint,
	point2 As CalculatedPoint,
	code As String
) As CalculatedLink

C++

public:
CalculatedLink^ Add(
	CalculatedPoint^ point1, 
	CalculatedPoint^ point2, 
	String^ code
)

Parameters

point1  CalculatedPoint
The first point for the link to be added.
point2  CalculatedPoint
The second point for the link to be added.
code  String
The code of the newly added link.

Return Value

CalculatedLink

Exceptions

ExceptionCondition
[!:System.InvalidOperationException] Thrown when the link collection is not from AppliedAssembly and AppliedSubassembly.
[!:System.ArgumentException] Thrown when:
  • The points are not from the same AppliedAssembly or AppliedSubassemby as the link collection.
  • The points are not from the same AppliedSubassemby.
  • 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

Reference

Was this information helpful?