Share

SpanningPipeLabel.Create(ObjectIdCollection, ObjectId) Method

Creates a new instance of a SpanningPipeLabel that spans a collection of parts using the default label style.



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

Syntax

C#

public static ObjectId Create(
	ObjectIdCollection partIds,
	ObjectId anchorPipeId
)

VB

Public Shared Function Create ( 
	partIds As ObjectIdCollection,
	anchorPipeId As ObjectId
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectIdCollection^ partIds, 
	ObjectId anchorPipeId
)

Parameters

partIds  ObjectIdCollection
An ObjectIdCollection of Parts that need spanning.
anchorPipeId  ObjectId
The ObjectId of the Pipe on which the label is located.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when:
  • The anchorPipeId or labelStyleId is invalid.
  • The items in partIds are not in the same PipeNetwork.
  • A path that crosses two adjacent items in partIds can not be found.

Remarks

  1. If a path that crosses each item in partIds can be calculated, each pipe on the path will be spanned.
  2. If the path that crosses two adjacent items in partIds crosses back on the starting part to form a loop, the spanned part in the loop is abandoned.

See Also

Reference

Was this information helpful?