Although I can't give you one correct way to do this, perhaps some of these ideas may work:
- You can use the transcript to see if the optional include file ran. Two ways to do this are the SVRF Message command and the environment variable CALIBRE_ECHO_RULE_FILE (set it to 1 before running the job). These only affect the transcript, however.
- If it is not in use elsewhere, you could add the Title statement to your optional include. This means that when the optional include runs, the specified title appears in the RDB and also the reports. Only one Title per total rule file, though, so this may not work.
- If you are running ERC as part of LVS, you could put comments in the results database using ERC Check Text COMMENTS. For DRC, the equivalent is DRC Check Text.
- If you need to be stone-cold, dead-simple sure, the optional rule file could set up its own RDB with DRC Check Map. For details, see "Multiple Output Databases" in the DRC Results Database section of the SVRF Reference Manual. If the uniquely named database is there, the options ran. The downside is you may need to switch between databases for what you want to do (or you may take a memory hit if you copy everything into the unique one).
I talked to someone more expert in LVS than I am, and he suggested the best way was your dummy devices idea. Those will appear in the extracted netlist and you won't even need to go into the RDB. (Although if this is a Query Server script, perhaps RDB is preferred over netlists.)
Hope some of that helped-