StructureSectionLabelCreate(ObjectId, ObjectId, ObjectId, Int32) Method |
Creates a new instance of a StructureSectionLabel on a SectionPipeNetwork using the default label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId sectionViewId,
ObjectId structureId,
ObjectId sectionPipeNetworkId,
int partIndex
)
Public Shared Function Create (
sectionViewId As ObjectId,
structureId As ObjectId,
sectionPipeNetworkId As ObjectId,
partIndex As Integer
) As ObjectId
public:
static ObjectId Create(
ObjectId sectionViewId,
ObjectId structureId,
ObjectId sectionPipeNetworkId,
int partIndex
)
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 the part in the SectionPipeNetwork with the specified Structure source.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The sectionViewId, structureId or sectionPipeNetworkId is invalid.
- The SectionPipeNetwork is not in the SectionView.
- The Structure is not the source of the SectionPipeNetwork.
- The partIndex is out of range.
|
See Also