Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ P&ID

GetMemoryUsage Macro

  • Last UpdatedJan 30, 2025
  • 2 minute read

The macro is used to monitor memory allocation to AutoCAD when running AVEVA P&ID. The macro is designed to display a warning when memory allocation is too high for the target workstation. The warning advises the user to restart the AVEVA P&ID session to reduce the possibility of the application becoming unstable due to low memory resources on the target workstation.

To enable the macro, the project administrator must add the user defined directive: USER_MAXMEMALLOCATION=<NUMERIC VALUE> express in Kilo Bytes. A suggested value is set to a maximum to 1800000, or less if the workstation has less than 32 GB of RAM available, to ensure the application remains responsive and stable on the target workstation. The specified value can be changed, depending on the amount of memory resources allocated to target workstation.

To enable the macro, the user must set the flag USER_RUNMACROS=YES.

Guidance Notes

The suggested maximum value for a workstation with 32 GB or RAM is 1800000.

The suggested maximum value for a workstation with 16 GB of RAM is 1000000.

Note:
The value can vary depending on the hardware infrastructure. For example, virtual memory available on the target workstation, or the amount of display graphic memory RAM allocated.

It is important that the user monitors the stability of the software to determine the maximum amount of memory to be set as the trigger to warn them to restart the application.

The application writes log information to a file named memory-monitor.txt which is located on the workstation %Temp% folder. The example displays returned data.

Drawing Open: D:\Projects\TRA-CPY\Drawings\TEST.DWG

Time Stamp: 15/03/2024 10:12:24

Drawing Open Count: 4

Memory allocated to application: 672892 KB

Available system memory: 32768 MB

TitleResults for “How to create a CRG?”Also Available in