AlignmentCreateOffsetAlignment(String, ObjectId, Double, ObjectId, Double, Double) Method |
Creates an offset Alignment from the specified alignment object Id, returns the object Id of the offset alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1190
Syntaxpublic static ObjectId CreateOffsetAlignment(
string alignmentName,
ObjectId parentAlignmentId,
double offset,
ObjectId styleId,
double startStation,
double endStation
)
Public Shared Function CreateOffsetAlignment (
alignmentName As String,
parentAlignmentId As ObjectId,
offset As Double,
styleId As ObjectId,
startStation As Double,
endStation As Double
) As ObjectId
public:
static ObjectId CreateOffsetAlignment(
String^ alignmentName,
ObjectId parentAlignmentId,
double offset,
ObjectId styleId,
double startStation,
double endStation
)
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.
- startStation Double
- The start station for the offset alignment.
- endStation Double
- The end station for the offset alignment.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The alignmentName, parentAlignmentId or styleId is invalid.
- offset is 0.0 or too large to calculate an offset alignment.
- startStation is less than start station of alignment.
- endStation is greater than end station of alignment.
- startStation is equal to or greater than endStation.
|
Remarks- A negative value (offset < 0) indicates the Offset Alignment is at the left of the parent alignment.
- A positive value (offset > 0) indicates the Offset Alignment is at the right.
See Also