Add a link. In most cases, a link is defined by 2 points.

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

Syntax

C#
public Link Add(
	IPoint point1,
	IPoint point2,
	string code,
	CorridorLinkDisplay displayMode
)
Visual Basic
Public Function Add ( _
	point1 As IPoint, _
	point2 As IPoint, _
	code As String, _
	displayMode As CorridorLinkDisplay _
) As Link
Visual C++
public:
Link^ Add(
	IPoint^ point1, 
	IPoint^ point2, 
	String^ code, 
	CorridorLinkDisplay displayMode
)

Parameters

point1
Type: Autodesk.Civil.DatabaseServices..::..IPoint
First point of the link.
point2
Type: Autodesk.Civil.DatabaseServices..::..IPoint
Second point of the link.
code
Type: System..::..String
The code of the link.
displayMode
Type: Autodesk.Civil.DatabaseServices..::..CorridorLinkDisplay
How to draw the link (solid, dashed, with/without arrowhead).

Return Value

The link added.

See Also