Gets the object of DataField by Context and index.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public PartDataField GetDataFieldBy( PartContextType context, int index )
Visual Basic
Public Function GetDataFieldBy ( _ context As PartContextType, _ index As Integer _ ) As PartDataField
Visual C++
public: PartDataField^ GetDataFieldBy( PartContextType context, int index )
Parameters
- context
- Type: Autodesk.Civil.DatabaseServices.PartContextType
The part context type to get.
- index
- Type: System.Int32
The index of the PartDataField to get.
Examples
This gets the first PartDataField of type StructHeight:
CopyC#

1retVal = oPartDataRecord.GetDataFieldBy(PartContextType.StructHeight, 0);