public override void Save()
public override void Save()
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. |
EPLAN.Harness.API.Exceptions.FileClosedException | This file is not opened. |
EPLAN.Harness.API.Exceptions.FileOpenedAsReadOnlyException | You can not perform this action on a document opened as read only. |
EPLAN.Harness.API.Exceptions.OperationFailedException | The operation was not successful. |
If this document was just added or project structure has changed, you also need to save the project.
Document must be opened. Document can not be opened in read-only mode.
document.Open(false, false); // Do something with the document... // Save the changes. document.Save(); // Do not forget to close the document. document.Close();