Adds a link with two specified points.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public CalculatedLink Add( CalculatedPoint point1, CalculatedPoint point2, string code ) |
Visual Basic |
---|
Public Function Add ( _ point1 As CalculatedPoint, _ point2 As CalculatedPoint, _ code As String _ ) As CalculatedLink |
Visual C++ |
---|
public: CalculatedLink^ Add( CalculatedPoint^ point1, CalculatedPoint^ point2, String^ code ) |
Parameters
- point1
- Type: Autodesk.Civil.DatabaseServices..::..CalculatedPoint
The first point for the link to be added.
- point2
- Type: Autodesk.Civil.DatabaseServices..::..CalculatedPoint
The second point for the link to be added.
- code
- Type: System..::..String
The code of the newly added link.
Remarks
This operation only immediately affects the objects those are from the same AppliedAssembly object or got from Baseline subsequently.
Exceptions
Exception | Condition |
---|---|
[!:System.InvalidOperationException] | Thrown when the link collection is not from AppliedAssembly and AppliedSubassembly. |
[!:System.ArgumentException] |
Thrown when:
|