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

Intergraph Smart Electrical Web API Installation and Configuration

Intergraph Smart Electrical
Search by Category
Installation & Upgrade
Smart P&ID Web API Version
Smart Electrical Web Version
Smart Instrumentation Web Version

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 Electrical Web API application is started on the server machine.

  1. In the Web 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 application is started, do the following:

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

    2. Save the web.config file.