Harness proD API Help
EPLAN.Harness.API.DataStructures Namespace / PartVersion Class
Members
In This Topic
    PartVersion Class
    In This Topic
    Part version manipulation class. The version number is stored in "HpD format": Major.mInor.Revision (MM.II.RRRR). The major and minor parts are visible in GUI. The revision part is internal. This number is always incremented when a change of the part is saved in the HpD library. It can cause an inconsistency between part versions in the project and the library. The parts in the project should be updated from the library in this case.
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.DataStructures.PartVersion

    Syntax
    public class PartVersion 
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Get the major part of the version number.  
    Public Property Get the minor part of the version number.  
    Public Property Get the revision part of the version number.  
    Top
    Public Methods
     NameDescription
    Public Method Compare two version numbers stored in two PartVersion objects.  
    Public Method Check if the version number is valid. See the constructor's description for valid ranges. All numbers must be within the valid range.  
    Public Method Convert the major and minor parts of the version number into the string value. The output string is formatted: <major>.<minor> , example: 1.0  
    Public Method Convert version number into int number which is used as input of several methods. The output number is a decimal number where M - major part, I - minor part, R - revision: MMIIRRRR. For example: 1.5.7 -> 1050007  
    Public MethodReturns a string that represents the current object.  
    Top
    Public Operators
    Overloaded.  Converts PartVersion object to int.
    Top
    See Also