Setting PercentLoaded based on engine memory usage
This example is included for information only and is not recommended for production work.
This example algorithm sets PercentLoaded based on the amount of memory being used in comparison to the amount of system memory. If you test the algorithm on a large project, you should see that the value of PercentLoaded increases as engine memory increases.
Dim availableMEM, EngineMEM
availableMEM = System.TotalPhysical + System.TotalVirtual
EngineMEM = Process.MemoryUsage + Process.VirtualMemoryUsage
PercentLoaded = (100 * EngineMEM) / availableMEM
See also