Share

ProfileView.Create(ObjectId, Point3d, StackedProfileViewsCreationOptions) Method

Creates stacked ProfileViews from the specified alignment with the default ProfileView name and BandSetStyle.



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

Syntax

C#

public static ObjectIdCollection Create(
	ObjectId alignmentId,
	Point3d insertPosition,
	StackedProfileViewsCreationOptions stackedOptions
)

VB

Public Shared Function Create ( 
	alignmentId As ObjectId,
	insertPosition As Point3d,
	stackedOptions As StackedProfileViewsCreationOptions
) As ObjectIdCollection

C++

public:
static ObjectIdCollection^ Create(
	ObjectId alignmentId, 
	Point3d insertPosition, 
	StackedProfileViewsCreationOptions^ stackedOptions
)

Parameters

alignmentId  ObjectId
The ObjectId of the alignment.
insertPosition  Point3d
The position at which the ProfileView is inserted.
stackedOptions  StackedProfileViewsCreationOptions
An object containing additional options for creating the stacked profileViews.

Return Value

ObjectIdCollection

Exceptions

ExceptionCondition
ArgumentException Thrown when the alignmentId is invalid.

Example

1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0];
2Point3d insertPosition = new Point3d(0, 0, 0);
3
4ObjectId topViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Top Stacked View"];
5ObjectId middleViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Middle Stacked View"];
6ObjectId bottomViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Bottom Stacked View"];
7StackedProfileViewsCreationOptions stackedOptions = new StackedProfileViewsCreationOptions(topViewStyleId, middleViewStyleId, bottomViewStyleId);
8
9ObjectIdCollection profileViewIds = ProfileView.Create(alignmentId, insertPosition, stackedOptions);

See Also

Reference

Was this information helpful?