Gets the object of DataField by Context and index.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public PartDataField GetDataFieldBy( PartContextType context, int index )
VB
Public Function GetDataFieldBy ( context As PartContextType, index As Integer ) As PartDataField
C++
public: PartDataField^ GetDataFieldBy( PartContextType context, int index )
Parameters
- context PartContextType
- The part context type to get.
- index Int32
- The index of the PartDataField to get.
Return Value
PartDataFieldExample
This gets the first PartDataField of type StructHeight:1retVal = oPartDataRecord.GetDataFieldBy(PartContextType.StructHeight, 0);