Using Automation in ExpeditionPCB 2007.8, cannot find how to list the scheme names, assigned in the Net Classes and Properties (or in CES).
Doc.RuleAreas is not suitable since it lists the scheme names, assigned to Rule Areas, placed on the board.
It's necessary to start the CES to get the scheme names.
I made a sample script.
This script runs CES on the background and gets the scheme names.
Please run a script on the Expedition.
I have just tested your script. Yes, it does work.
Two prerequisites are:
1. CES should be connected to PCB (rather then Net Classes and Clearances)
2. CES should be started.
Retrieving data ...