AlignmentCreateOffsetAlignment(Database, String, String, Double, String, Double, Double) Method

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.8.0.292
Syntax
public static ObjectId CreateOffsetAlignment(
	Database database,
	string alignmentName,
	string parentAlignmentName,
	double offset,
	string styleName,
	double startStation,
	double endStation
)

Parameters

database  Database
The database of the parent alignment.
alignmentName  String
The name of the offset alignment.
parentAlignmentName  String
The name of the parent alignment.
offset  Double
The offset value for the offset alignment.
styleName  String
The style name for the offset alignment .
startStation  Double
The start station for the offset alignment.
endStation  Double
The end station for the offset alignment.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  1. The alignmentName, parentAlignmentName or styleName is invalid.
  2. offset is 0 or too large to calculate an offset alignment.
  3. startStation is less than start station of alignment.
  4. endStation is greater than end station of alignment.
  5. startStation is equal to or greater than endStation.
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.
See Also