Share

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

Creates a profile of Offset type



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

Syntax

C#

public ObjectId CreateOffsetProfileBySlope(
	string profileName,
	ObjectId offsetAlignmentId,
	ObjectId profileStyleId,
	double slope
)

VB

Public Function CreateOffsetProfileBySlope ( 
	profileName As String,
	offsetAlignmentId As ObjectId,
	profileStyleId As ObjectId,
	slope As Double
) As ObjectId

C++

public:
ObjectId CreateOffsetProfileBySlope(
	String^ profileName, 
	ObjectId offsetAlignmentId, 
	ObjectId profileStyleId, 
	double slope
)

Parameters

profileName  String
The name for the new profile. Make sure this name is not used by another profile under the specified alignment.
offsetAlignmentId  ObjectId
The ObjectId of offset alignment to associate the new offset profile.
profileStyleId  ObjectId
The ObjectId of ProfileStyle for the new profile.
slope  Double
The slope of the profile.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  • The ObjectId of the profileStyleId is invalid.
  • The profile name is null or empty.

See Also

Reference

Was this information helpful?