Share

Profile.CreateFromSurface(String, ObjectId, ObjectId, ObjectId, ObjectId, ObjectId, Double, Double, Double) Method

Creates a profile of EG type from a surface.



Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.7.0.1276

Syntax

C#

public static ObjectId CreateFromSurface(
	string profileName,
	ObjectId alignmentId,
	ObjectId surfaceId,
	ObjectId layerId,
	ObjectId styleId,
	ObjectId labelSetId,
	double offset,
	double sampleStart,
	double sampleEnd
)

VB

Public Shared Function CreateFromSurface ( 
	profileName As String,
	alignmentId As ObjectId,
	surfaceId As ObjectId,
	layerId As ObjectId,
	styleId As ObjectId,
	labelSetId As ObjectId,
	offset As Double,
	sampleStart As Double,
	sampleEnd As Double
) As ObjectId

C++

public:
static ObjectId CreateFromSurface(
	String^ profileName, 
	ObjectId alignmentId, 
	ObjectId surfaceId, 
	ObjectId layerId, 
	ObjectId styleId, 
	ObjectId labelSetId, 
	double offset, 
	double sampleStart, 
	double sampleEnd
)

Parameters

profileName  String
Name for the new profile, make sure this name is not used by another profile under the specified alignment
alignmentId  ObjectId
Alignment id to place the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Alignment
surfaceId  ObjectId
Surface id to place the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Surface
layerId  ObjectId
Layer id to place the new profile, OBJECTID TYPE: Autodesk.AutoCAD.DatabaseServices.LayerTableRecord
styleId  ObjectId
Style id to apply to the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Styles.AlignmentStyle
labelSetId  ObjectId
LabelSet id to apply to the new profile, OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Styles.AlignmentLabelSetStyle
offset  Double
Sets the offset value to create this Profile.
sampleStart  Double
Sets the start sample station for this Profile, it should be within Alignment station range
sampleEnd  Double
Sets the end sample station for this Profile, it should be within Alignment station range

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  1. profileName is either null, blank, or existed under the specified alignment.
  2. alignmentId, surfaceId, layerId, styleId, or labelsetId is invalid.
  3. offset value too large or too small. sampleStart or sampleEnd are not within Alignment station range.

Remarks

OBJECTID TYPE: Autodesk.Civil.DatabaseServices.Profile

See Also

Reference

Was this information helpful?