Dynamic Screen Switch Function

Dynamic Screen Switch Function

Hi, I'm trying to find a way to build a "Screen Switch Function" on the fly in an Add-In service. Considering the following configuration: [AddInExtension("Temp Service", "Service extension description", DefaultStartMode = DefaultStartupModes.Auto)] public class ProjectServiceExtension : IProjectServiceExtension { private IProject _project; public void Start(IProject context, IBehavior behavior) { _project = context; //-- This can just read from an attached variable on any object, and just execute this //-- BUT, this throws an exception that says it's a read only setting (Parameter) //-- Yet, the .Parameters says "get; set;" when I peek at the method implementation in visual studio. switchFunc.Parameter = "NextScreenName"; switchFunc.Execute(); } catch(Exception ex) { //-- Log exception... } } public void Stop() { _project.ScreenCollection.ElementLeftButtonUp -= ScreenCollection_ElementLeftButtonUp; } } My end goal is to just create a little add-on or script to have one common screen switch that can be reused and not have to define a 100 different screen switch functions in my project for simple tasks. How do I do this in Zenon? Thanks!

This is a migrated post! Originally posted on 04.06.2021 by user justinL. Please be aware that information can be outdated.