How can I automatically hide all objects that are out of service in diagrams?

Category:
Scripting
Answer

The Python-script in the attached project makes all elements invisible, that have an activated "out of service" flag (parameter "outserv"). This is done by creating a new graphic layer called "Out of Service" that is deactivated and moving all relevant graphical objects to this layer. This change is applied to all diagrams (IntGrfnet) in the project.

By activating the graphic layer “Out of service”, the elements are made visible again.

Back