ProfileCreateFromSurface(String, CivilDocument, String, String, String, String, String) Method |
Creates a profile of EG type from a surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId CreateFromSurface(
string profileName,
CivilDocument document,
string alignmentName,
string surfaceName,
string layerName,
string styleName,
string labelSetName
)
Public Shared Function CreateFromSurface (
profileName As String,
document As CivilDocument,
alignmentName As String,
surfaceName As String,
layerName As String,
styleName As String,
labelSetName As String
) As ObjectId
public:
static ObjectId CreateFromSurface(
String^ profileName,
CivilDocument^ document,
String^ alignmentName,
String^ surfaceName,
String^ layerName,
String^ styleName,
String^ labelSetName
)
Parameters
- profileName String
- The name for the new profile. Make sure this name is not used by another profile under the specified alignment
- document CivilDocument
- The CivilDocument in which to place this new profile
- alignmentName String
- The name of the alignment for this new profile.
- surfaceName String
- The name of the surface on which to place this new profile.
- layerName String
- The name of the layer for this profile
- styleName String
- The name of the style for this profile
- labelSetName String
- The name of the label set for this profile
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- profileName is either null, blank, or existed under the specified alignment.
- alignmentId, surfaceId, layerId, styleId, or labelsetId is invalid.
- offset value too large or too small. sampleStart or sampleEnd are not within Alignment station range.
|
Remarks
This method will use default values for offset, start station and end station.
default offset = 0, default start station and end station will bind with the parent alignment station.
See Also