Creates an offset Alignment from the specified alignment name, returns the object Id of the offset alignment.

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

Syntax

C#
public static ObjectId CreateOffsetAlignment(
	Database database,
	string alignmentName,
	string parentAlignmentName,
	double offset,
	string styleName
)
Visual Basic
Public Shared Function CreateOffsetAlignment ( _
	database As Database, _
	alignmentName As String, _
	parentAlignmentName As String, _
	offset As Double, _
	styleName As String _
) As ObjectId
Visual C++
public:
static ObjectId CreateOffsetAlignment(
	Database^ database, 
	String^ alignmentName, 
	String^ parentAlignmentName, 
	double offset, 
	String^ styleName
)

Parameters

database
Type: Database
The database of the parent alignment.
alignmentName
Type: System..::..String
The name of the offset alignment.
parentAlignmentName
Type: System..::..String
The name of the parent alignment.
offset
Type: System..::..Double
The offset value for the offset alignment.
styleName
Type: System..::..String
The style name for the offset alignment .

Remarks

  1. A negative value (offset < 0) indicates the Offset Alignment is at the left of the parent alignment.
  2. A positive value (offset > 0) indicates the Offset Alignment is at the right.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The alignmentName, parentAlignmentName or styleName is invalid.
  2. offset is 0 or too large to calculate an offset alignment.

See Also