It seems as though I may be missing something, here is my problem.
I wrote a macro to put all components that pertain to each row of a BOM on their own layer and generate a random color for them, this works fine. Except when i do the same task manually, I am able to apply the component layer change to all views on the drawing sheet (see image).
As a work around, i have the macro loop through each view applying the same settings. This slows the process down and leaves the user at a disadvantage if they want to change the layer the component is on manually after having run the macro. Try as i might, i have not found any way to access that "Apply to all views" option through api, any thoughts?