Share

Alignment.CreateOffsetAlignment(String, ObjectId, Double, ObjectId) Method

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



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

Syntax

C#

public static ObjectId CreateOffsetAlignment(
	string alignmentName,
	ObjectId parentAlignmentId,
	double offset,
	ObjectId styleId
)

VB

Public Shared Function CreateOffsetAlignment ( 
	alignmentName As String,
	parentAlignmentId As ObjectId,
	offset As Double,
	styleId As ObjectId
) As ObjectId

C++

public:
static ObjectId CreateOffsetAlignment(
	String^ alignmentName, 
	ObjectId parentAlignmentId, 
	double offset, 
	ObjectId styleId
)

Parameters

alignmentName  String
The name of the offset alignment.
parentAlignmentId  ObjectId
The object Id of the parent alignment.
offset  Double
The offset value for the offset alignment.
styleId  ObjectId
The styleId for the offset alignment.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  1. The alignmentName, parentAlignmentId or styleId is invalid.
  2. offset is 0.0 or too large to calculate an 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.

See Also

Reference

Was this information helpful?