Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ObjectInvalidException | The object is in invalid state. Obtain a new one. |
EPLAN.Harness.API.Exceptions.InternalErrorException | Internal error of HpD or HpD API. IMPORTANT: Throwing this exception changes HpD Api's state to Failed. |
Only documents that are not a revision can be revisioned and only revisioned documents can be promoted.
Note the difference: IsRevision tells you that this document is a revision of another document, so it can be promoted (using Promote method). HasRevision on the other hand means that this document is revisioned - has revisions that can be accessed with the Revisions property.