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.4.2516.0
Syntax
C# |
---|
public static ObjectId CreateOffsetAlignment(
string alignmentName,
ObjectId parentAlignmentId,
double offset,
ObjectId styleId
) |
Visual Basic |
---|
Public Shared Function CreateOffsetAlignment ( _
alignmentName As String, _
parentAlignmentId As ObjectId, _
offset As Double, _
styleId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId CreateOffsetAlignment(
String^ alignmentName,
ObjectId parentAlignmentId,
double offset,
ObjectId styleId
) |
Parameters
- alignmentName
- Type: System..::..String
The name of the offset alignment.
- parentAlignmentId
- Type: ObjectId
The object Id of the parent alignment.
- offset
- Type: System..::..Double
The offset value for the offset alignment.
- styleId
- Type: ObjectId
The styleId for the offset alignment.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The alignmentName, parentAlignmentId or styleId is invalid.
- offset is 0.0 or too large to calculate an offset alignment.
|
See Also