Hi, how to open screen in C# before .Show() ?
in zenon help I can't find example, and link to vba example
https://onlinehelp.copadata.com/Cont...347a7c4215f623
Hi, how to open screen in C# before .Show() ?
in zenon help I can't find example, and link to vba example
https://onlinehelp.copadata.com/Cont...347a7c4215f623
Hi Oleksandr,
usually, you don't need to call the method. For opening a screen a zenon function of type Screen switch has to be executed. This function will bring the screen to the foreground, too.Code:IScreen.Show()
A zenon function cut be executed by calling. (https://onlinehelp.copadata.com/Content.html?product=addin&version=1000&lang=en&id =c_cdbe1d8750b66c929ccb59c539e2d58e#)Code:IFunction.Execute()
do it your way!
Discover: Service Pages - zenon Product Family - Industry Solutions - local representative
You could use a dummy function of type screenswitch and change the called screen by the addin before you call the Execute() method.
I didn't test it, but should work.
Last edited by mst : 30th November 2021 at 09:31 Reason: Wrong methodname Start() instead of Execute()
Hi Oleksandr,
creating a lot of functions is the way you should go.
You should always prefer using build-in solutions instead of creating your own ones. It is far easier to operate with a lot of functions than try to minimize them with your own solution. (You can search and filter functions. With the help of the PARAM paramter and index-based variable substitution, you can minimize the amount of functions.)
You can manipulate the Dynproperties of a screenswitch function to open different screens, but if these screens are of different types, you have to do much more.
do it your way!
Discover: Service Pages - zenon Product Family - Industry Solutions - local representative