Creates an Alignment without geometry information.
public static ObjectId Create( CivilDocument document, string alignmentName, string siteName, string layerName, string styleName, string labelSetName )
Public Shared Function Create ( document As CivilDocument, alignmentName As String, siteName As String, layerName As String, styleName As String, labelSetName As String ) As ObjectId
public: static ObjectId Create( CivilDocument^ document, String^ alignmentName, String^ siteName, String^ layerName, String^ styleName, String^ labelSetName )
| Exception | Condition |
|---|---|
| ArgumentException |
Thrown when:
|
1// Uses an existing Alignment Style and Label Set Style named "Standard" (for example, from 2// the Civil 3D (Imperial) NCS.dwt template. This call will fail if the named styles 3// don't exist. 4// Uses layer 0, and no site (null) 5ObjectId testAlignmentID = Alignment.Create( doc, "New Alignment", null, "0", "Standard", "Standard");