Creates an Alignment without geometry information, with Alignment Type.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId Create(
CivilDocument document,
string alignmentName,
ObjectId siteId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId,
AlignmentType type
) |
Visual Basic |
---|
Public Shared Function Create ( _
document As CivilDocument, _
alignmentName As String, _
siteId As ObjectId, _
layerId As ObjectId, _
styleId As ObjectId, _
labelSetId As ObjectId, _
type As AlignmentType _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId Create(
CivilDocument^ document,
String^ alignmentName,
ObjectId siteId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId,
AlignmentType type
) |
Parameters
- document
- Type: Autodesk.Civil.ApplicationServices..::..CivilDocument
Document object in which the Alignment is created.
- alignmentName
- Type: System..::..String
Name of the created Alignment.
- siteId
- Type: ObjectId
ObjectId of the site on which the Alignment is created. Pass null to create
a siteless alignment.
- layerId
- Type: ObjectId
ObjectId of the layer on which the Alignment is created.
- styleId
- Type: ObjectId
ObjectId of the style applied to the created Alignment.
- labelSetId
- Type: ObjectId
ObjectId of the labelSet applied to the created Alignment.
- type
- Type: Autodesk.Civil.DatabaseServices..::..AlignmentType
Alignment type of the created Alignment object.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The the name of drawing, or the layer, style, labelSet or site are invalid.
- The name of the alignment already exists.
- The value of Alignment Type is not a valid alignment type.
|
See Also