Display Styles, Display Rules activation

I am building a tool that navigates through saved views and applies a display rule to the saved view based on named groups created from ISO pipe properties. The question I have is regarding an issue with how and when display rules are applied.

When I apply a display style with a display rule via keyin (display style with a display rule already applied stored in a dgnlib), the display rule is not actually applied until the display styles dialog is physically opened whether by button or keyin. The keyin to apply a display rule does not exist until the display styles dialog is physically opened. Is there a way to load the dialog in silent mode so that I can apply the display rule? What is the keyin to close the display styles dialog as I am unable to find it or figure out what it is. Anyone have any ideas?