PipeSectionLabelCreate(ObjectId, ObjectId, ObjectId, Int32, ObjectId) Method

Creates a new instance of a PipeSectionLabel on a SectionPipeNetwork with the specified label style.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	ObjectId sectionViewId,
	ObjectId pipeId,
	ObjectId sectionPipeNetworkId,
	int partIndex,
	ObjectId labelStyleId
)

Parameters

sectionViewId  ObjectId
The ObjectId of the SectionView in which the label is located.
pipeId  ObjectId
The ObjectId of the Pipe that is one of the sources of a SectionPipeNetwork.
sectionPipeNetworkId  ObjectId
The ObjectId of a SectionPipeNetwork.
partIndex  Int32
The zero-based index of a part in the SectionPipeNetwork with the specified Pipe source.
labelStyleId  ObjectId
The ObjectId of a PipeSectionLabel style to use.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The sectionViewId, pipeId or sectionPipeNetworkId is invalid.
  • The SectionPipeNetwork is not in the SectionView.
  • The Pipe is not the source of the SectionPipeNetwork.
  • The partIndex is out of range.
See Also