AlignmentCreateOffsetAlignment(Database, String, String, Double, String) Method |
Creates an offset Alignment from the specified alignment name, 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(
Database database,
string alignmentName,
string parentAlignmentName,
double offset,
string styleName
)
Public Shared Function CreateOffsetAlignment (
database As Database,
alignmentName As String,
parentAlignmentName As String,
offset As Double,
styleName As String
) As ObjectId
public:
static ObjectId CreateOffsetAlignment(
Database^ database,
String^ alignmentName,
String^ parentAlignmentName,
double offset,
String^ styleName
)
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 .
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The alignmentName, parentAlignmentName or styleName is invalid.
- offset is 0 or too large to calculate an offset alignment.
|
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