Creates a new instance of a PipeSectionLabel on a SectionPipeNetwork with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public static ObjectId Create( ObjectId sectionViewId, ObjectId pipeId, ObjectId sectionPipeNetworkId, int partIndex, ObjectId labelStyleId )
Visual Basic
Public Shared Function Create ( _ sectionViewId As ObjectId, _ pipeId As ObjectId, _ sectionPipeNetworkId As ObjectId, _ partIndex As Integer, _ labelStyleId As ObjectId _ ) As ObjectId
Visual C++
public: static ObjectId Create( ObjectId sectionViewId, ObjectId pipeId, ObjectId sectionPipeNetworkId, int partIndex, ObjectId labelStyleId )
Parameters
- sectionViewId
- Type: ObjectId
The ObjectId of the SectionView in which the label is located.
- pipeId
- Type: ObjectId
The ObjectId of the Pipe that is one of the sources of a SectionPipeNetwork.
- sectionPipeNetworkId
- Type: ObjectId
The ObjectId of a SectionPipeNetwork.
- partIndex
- Type: System.Int32
The zero-based index of a part in the SectionPipeNetwork with the specified Pipe source.
- labelStyleId
- Type: ObjectId
The ObjectId of a PipeSectionLabel style to use.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|