Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPropertyValue Class / LastUsedIndex Property
Example

LastUsedIndex Property (MDPropertyValue)
Returns number of highest used index. Index value starts from 1. If it is not indexed-property or there index is not used, LastUsedIndex is 0; Object of MDPropertyValue have to point to on-line property.
Syntax
public int LastUsedIndex {get;}
Exceptions
ExceptionDescription
Thrown when property is not indexed.
Example
MDPropertyValue oProperty = m_oTestPart.Properties[ Eplan.EplApi.MasterData.Properties.MDPartsDatabaseItem.ARTICLE_FREE_DATA_VALUE ];
if(oProperty.Definition.IsIndexed)
{
  {
      MDPropertyValue oPropertyElement = oProperty[ i ];
      string sProperty = oPropertyElement.ToString();
  }
}
See Also