Macro to insert general table and populate with configuration-specific custom properties

Would anyone be able to help me write a macro to do the following:

*********

Preconditions: In Drawing file, with a Drawing View selected

Commands:

1) Insert General Table from a template, attached to anchor

2) Add row for each configuration present in referenced part file that has a boolean Configuration-Specific Custom Property value set to Yes.

3) Populate table with Configuration-Specific Custom Property values from each included configuration

*********

Even without a macro I don't seem able to link table values to Configuration-Specific Custom Properties belonging to a configuration that is not referenced by a drawing view in my drawing. So is it even possible to create a macro to do what I want?

SolidworksApi macros