Creates a new instance of a PipeSectionLabel on a SectionPipeNetwork using the default label style.

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

Syntax

C#
public static ObjectId Create(
	ObjectId sectionViewId,
	ObjectId pipeId,
	ObjectId sectionPipeNetworkId,
	int partIndex
)
Visual Basic
Public Shared Function Create ( _
	sectionViewId As ObjectId, _
	pipeId As ObjectId, _
	sectionPipeNetworkId As ObjectId, _
	partIndex As Integer _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId sectionViewId, 
	ObjectId pipeId, 
	ObjectId sectionPipeNetworkId, 
	int partIndex
)

Parameters

sectionViewId
Type: ObjectId
The ObjectId of the SectionView in which the label is located.
pipeId
Type: ObjectId
The ObjectId of a Pipe that is one of the sources of the SectionPipeNetwork.
sectionPipeNetworkId
Type: ObjectId
The ObjectId of a SectionPipeNetwork.
partIndex
Type: System..::..Int32
The index of a part in the SectionPipeNetwork with the specified Pipe source.

Exceptions

ExceptionCondition
System..::..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