ProfileViewCreate(ObjectId, Point3d, String, ObjectId, ObjectId, SplitProfileViewCreationOptions) Method |
Creates a split ProfileView from the specified alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId alignmentId,
Point3d insertPosition,
string profileViewName,
ObjectId profileViewBandSetId,
ObjectId profileViewStyleId,
SplitProfileViewCreationOptions splitOptions
)
Public Shared Function Create (
alignmentId As ObjectId,
insertPosition As Point3d,
profileViewName As String,
profileViewBandSetId As ObjectId,
profileViewStyleId As ObjectId,
splitOptions As SplitProfileViewCreationOptions
) As ObjectId
public:
static ObjectId Create(
ObjectId alignmentId,
Point3d insertPosition,
String^ profileViewName,
ObjectId profileViewBandSetId,
ObjectId profileViewStyleId,
SplitProfileViewCreationOptions^ splitOptions
)
Parameters
- alignmentId ObjectId
- The ObjectId of the alignment.
- insertPosition Point3d
- The position at which the ProfileView is inserted.
- profileViewName String
- The name of the split ProfileView.
- profileViewBandSetId ObjectId
- The ObjectId of the ProfileViewBandSet to import to the ProfileView.
- profileViewStyleId ObjectId
- The ObjectId of the ProfileView style.
- splitOptions SplitProfileViewCreationOptions
- An object containing additional options for creating the split profileView.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The alignmentId is invalid.
- The profileViewName is a duplicate.
- The profileViewBandSetId is invalid.
- The profileViewStyleId is invalid.
|
Example 1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0];
2Point3d insertPosition = new Point3d(0, 0, 0);
3string profileViewName = "Name of profile view";
4ObjectId profileViewBandSetId = CivilApplication.ActiveDocument.Styles.ProfileViewBandSetStyles["Standard"];
5ObjectId profileViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Standard"];
6
7ObjectId firstSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["First View"];
8ObjectId intermediateSplitVIewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Intermediate View"];
9ObjectId lastSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Last View"];
10double viewHeight = 100;
11SplitProfileViewCreationOptions splitOptions = new SplitProfileViewCreationOptions(viewHeight, firstSplitViewStyleId, intermediateSplitVIewStyleId, lastSplitViewStyleId);
12
13ObjectId profileViewId = ProfileView.Create(alignmentId, insertPosition, profileViewName, profileViewBandSetId, profileViewStyleId, splitOptions);
See Also