Configure Smart P&ID Web API to delete temporary files - Intergraph Smart P&ID - 3.0 - Installation & Upgrade

Intergraph Smart P&ID Web API Installation and Configuration

Language
English
Product
Intergraph Smart P&ID
Subproduct
Web API
Search by Category
Installation & Upgrade
Smart P&ID Web API Version
3.0

When performing an action involving Smart P&ID 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 P&ID Web API application is started on the server machine.

  1. In the Smart WebAPI SPID 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.