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 Constructors
Public Properties
| Name | Description |
| Major |
Get the major part of the version number.
|
| Minor |
Get the minor part of the version number.
|
| Revision |
Get the revision part of the version number.
|
Top
Public Methods
| Name | Description |
| Compare |
Compare two version numbers stored in two PartVersion objects.
|
| IsValid |
Check if the version number is valid. See the constructor's description for valid ranges.
All numbers must be within the valid range.
|
| MajorMinorToString |
Convert the major and minor parts of the version number into the string value.
The output string is formatted: <major>.<minor> , example: 1.0
|
| ToInt |
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
|
| ToString | Returns a string that represents the current object. |
Top
Public Operators
See Also