Can the AF SDK be used to find out how many tags are used in the PI Archive and how many tags are available?

Can the AF SDK be used to find out how many tags are used in the PI Archive and how many tags are available?

Hello Mike,

Although you can't use PI AF SDK to obtain the total amount of PI Points available, you can use either piartool -lic def or pilicmgr -lic def and process its string response programmatically using C# or PowerShell for instance.

One of this fields should be: ------ pibasess.maxpointcount ------

This should have the information you are looking for!

Hope it helps!

Hi Mike, you can use PIServer.GetPointCount Method to get the number of points created. However, I don't believe there is a way to get the number of points licensed for (or available points) via AF SDK.