Configure Smart API server to delete temporary files - Intergraph Smart Electrical - Installation & Upgrade

Intergraph Smart Electrical Smart API Installation and Configuration

PPMProduct
Intergraph Smart Electrical
PPMCategory_custom
Installation & Upgrade
Version_SPPID_custom
10
Version_WebSPID
2.0
Version_WebSEL
2.1

When performing an action involving Smart Electrical files (such as retrieving files, printing a drawing as a PDF file), each file is saved on the server in the \Files folder. For an example of a request that involves copying a file to this folder, see Save a drawing as PDF without applied display set and refer to the procedure Download drawing file. In the request results, the folder path and file name appear for the ‘Uri’ parameter.

By default, the software is not configured to delete these files, therefore in time, many files may accumulate in the \Files folder, taking up a large amount of space on the server. A setting in the web.config file can be used to determine whether the files in the \Files folder are deleted whenever the Smart API application is started on the server machine.

  1. In the Smart Electrical Smart API installation folder, locate and open the web.config file.

  2. Go to the 'ClearHistory' setting, which by default is as follows:

    <add key="ClearHistory" value="false" />

    This value sets the temporary files to never be deleted.

  3. To change the setting to delete the files in the \Files folder whenever the Smart API application is started, do the following:

    1. Change the value of the setting from 'false' to 'true'.

    2. Save the web.config file.