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

In This Topic
    LastUsedIndex Property (MDPropertyValue)
    In This Topic
    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;}
    public:
    property int LastUsedIndex {
       int 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