SpanningPipeProfileLabel.Create(ObjectIdCollection, ObjectId, ObjectId) Method

Creates a new instance of a SpanningPipeProfileLabel that spans a collection of ProfileViewParts using the default label style.



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

Syntax

C#

public static ObjectId Create(
	ObjectIdCollection profileViewPartIds,
	ObjectId anchorProfileViewPartId,
	ObjectId profileViewId
)

VB

Public Shared Function Create ( 
	profileViewPartIds As ObjectIdCollection,
	anchorProfileViewPartId As ObjectId,
	profileViewId As ObjectId
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectIdCollection^ profileViewPartIds, 
	ObjectId anchorProfileViewPartId, 
	ObjectId profileViewId
)

Parameters

profileViewPartIds  ObjectIdCollection
An ObjectIdCollection of ProfileViewParts that need spanning.
anchorProfileViewPartId  ObjectId
The ObjectId of the ProfileViewPart on which the label is located.
profileViewId  ObjectId
The ObjectId of the ProfileView in which the label is located.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  • The anchorProfileViewPartId, profileViewId or labelStyleId is invalid.
  • The items in profileViewPartIds are not in the same PipeNetwork.
  • The items in profileViewPartIds aer not in the ProfileView.
  • A path crossing two adjacent items in profileViewPartIds can not be found.

Remarks

See Also

Reference

SpanningPipeProfileLabel Class
Create Overload
Autodesk.Civil.DatabaseServices Namespace