Drawing>Section View>Properties>Section Scope and Show Hidden Edges

I have an assembly drawing in which I m trying to use a macro to get the components under:

1) Section Scope > Excluded components/rib feature (3 components under it)

2) Show Hidden Edges (1 component under it)

I have tired to get use GetExcludedComponents Method but it doesn't seem to work.

Any help would be much appreciated.

Thanks,

Mo

SolidworksApi macros