Johnzon:
Yes, there is a Global Variable,
GLOB_STRUCTURE_DISPLAY, that returns the current Partial Structure Display setting. Another option is to create your own Model View Option variables, which could be set independent of the Partial Structure Display.
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.
David