SpanningPipeProfileLabelCreate(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.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectIdCollection profileViewPartIds,
ObjectId anchorProfileViewPartId,
ObjectId profileViewId
)
Public Shared Function Create (
profileViewPartIds As ObjectIdCollection,
anchorProfileViewPartId As ObjectId,
profileViewId As ObjectId
) As ObjectId
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
ExceptionsException | Condition |
---|
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- The source of anchorProfileViewPartId should be a pipe.
- A path crossing each item in profileViewPartIds is calculated, and each profileViewPart on the path is spanned.
- If the path crossing two adjacent items in partIds crosses back to the start part to form a loop, the spanned part in the loop is abandoned.
See Also