Creates a new instance of a StructureSectionLabel on a SectionPipeNetwork using the specified label style.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId Create( ObjectId sectionViewId, ObjectId structureId, ObjectId sectionPipeNetworkId, int partIndex, ObjectId labelStyleId )
VB
Public Shared Function Create ( sectionViewId As ObjectId, structureId As ObjectId, sectionPipeNetworkId As ObjectId, partIndex As Integer, labelStyleId As ObjectId ) As ObjectId
C++
public: static ObjectId Create( ObjectId sectionViewId, ObjectId structureId, ObjectId sectionPipeNetworkId, int partIndex, ObjectId labelStyleId )
Parameters
- sectionViewId ObjectId
- The ObjectId of the SectionView in which the label is located.
- structureId ObjectId
- The ObjectId of the Structure that is one of the sources of the SectionPipeNetwork.
- sectionPipeNetworkId ObjectId
- The ObjectId of the SectionPipeNetwork.
- partIndex Int32
- The zero-based index of a part in the SectionPipeNetwork with the specified Structure source.
- labelStyleId ObjectId
- The ObjectId of a StructureSectionLabel style.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|