AlignmentCreate(CivilDocument, String, ObjectId, ObjectId, ObjectId, ObjectId, AlignmentType) Method |
Creates an Alignment without geometry information, with Alignment Type.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
CivilDocument document,
string alignmentName,
ObjectId siteId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId,
AlignmentType type
)
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
public:
static ObjectId Create(
CivilDocument^ document,
String^ alignmentName,
ObjectId siteId,
ObjectId layerId,
ObjectId styleId,
ObjectId labelSetId,
AlignmentType type
)
Parameters
- document CivilDocument
- Document object in which the Alignment is created.
- alignmentName String
- Name of the created Alignment.
- siteId ObjectId
- ObjectId of the site on which the Alignment is created. Pass null to create
a siteless alignment.
- layerId ObjectId
- ObjectId of the layer on which the Alignment is created.
- styleId ObjectId
- ObjectId of the style applied to the created Alignment.
- labelSetId ObjectId
- ObjectId of the labelSet applied to the created Alignment.
- type AlignmentType
- Alignment type of the created Alignment object.
Return Value
ObjectId
ExceptionsException | Condition |
---|
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.
|
Remarks
This method creates an Alignment using ObjectId parameters. Use an ObjectId.NULL for a siteless Alignment.
See Also