unable to create variable via zenon addin
i attempt to create a variable via zenon addin using code below using target framework .net 4.8 context.Workspace.ActiveProject.VariableCollection.Create("var_1", context.Workspace.ActiveProject.DriverCollection["Intern"], ChannelType.SystemDriverVariable,
add in
hi all, could anyone show me an example of how to use/access the IRecipePhase object of my currently executed CR in batch control?
html screen from service extension addin
Hi, I'm trying to make a service extension that will popup a window to create html screen and specify it's URL. I can already create all the frame and screen for the html but i need to create switch screen function from the service extension that i can
make multiple variable in zenon editor on picture
Hello everyone, i am working on project , where i need to make more then 500 small circle on pictures by detecting specific line one that picture. basically it should find out length of line from that picture and and make circle according to that diameter
VSTA Project not working properly
Hi people, I am new with Zenon and I am trying to create a runtime script with C# on VSTA. I have copied the code written in the help's examples (the one named "Writing project information in the zenon output window") and I am getting errors with the
does zenon 11 resolvs bugs with WPF element versioning?
Hi, generally in cases when u set "no selection" for existed and bounded wpf element and when u delete old one and import new one. 1) version problem 2) empty wpf element on runtime and client, but in editor no errors and wpf lodas fine
Variable value
Hi, How can I get variable value by Add-In Framework. I tryed use GetValue() Method from IVariable but is not working. Thanks
Connect zenon to API and SQL Server
Hi, In my new project I have to preapre communication with SQL Server Data Base and with external API. 1) SQL Server: Exporting data from zenon by historian is not only one function that i need. I have to also communicate with zenon by using SQL, for
Change Full Screen mode (MainWindowStyle) in Webclient/Samrt client
Hi, is it possible to change MainWindowStyle property in Webclient/Samrt client ? I tried below code but every one returns null var apropies = context.Parent.Parent.GetDynamicProperties(""); var aprpp0 = context.Parent.Parent.GetDynamicProperty("");
DynamicProperty eines Buttons auslesen
Hallo Forum, ich programmiere derzeit einen Service im Editor und möchte gerne die DynamicProperty eines Buttons auslesen. Dabei handelt es sich um die Variable "Text" im Ordner "$_Text". (Bild im Anhang) Mein Ansatz: // Objekt (z.B Button) wird angeklickt,
Access archive data via Add-In
Hi, I would like to know if accesing to online archived data via Add-In is listed as an available funcionality of the software. I have tried coding and I can access to the archive name and archived variables but not to the list of archived values. If
Active Directory authentication in WPF
Hi, I have use in my project AD and WPF. For some controls in WPF I need to verify access. Is there ways to do that in WPF side? This is a migrated post! Originally posted on 30.05.2022 by user Oleksandr. Please be aware that information can be outd
IArchive reference
I am trying to access archive data from AddIns and I've found some examples in the help tab. They use IArchiveFilterVariable data type and by adding "using Scada.AddIn.Contracts;" is not working. I've tried with all the posible extensions that are available
data structure to JSON data sending as value
Hi, is it possible to generate JSON in base of web client starter data structure object? Schema of actions: 1) zenon client control (web client starter) takes snapshot of machine data (some list of variables or whole structure) by one wstring variable
Thread Sleep
I am finding that if I do: context.VariableCollection["PLC!G_HMI.Recipes.WorkHmi"].SetValue(0, true); Thread.Sleep(10000); The variable goes true past the 10 secs and not before. Is there anyway I can do this before? I need to wait the 10 Secs for a timeout
AD Comparison UserLevel and UserGroupLevel in clent side for validation access
Hi, I use Active Directory in projects. In global project I have few user groups, and have no users. List of users, feeds directly from AD. And I use events in service. How to check if logged AD user have access for clicked button either not? Action executes
context.Parent.Parent.Close(); on client side
Hi, would it work on client side context.Parent.Parent.Close();? When I trying to use that in Web Client Starter, client freezes. So if it work, what I need to do before using this statement? This is a migrated post! Originally posted on 20.04.2022 by
Add In read/write Project Properties
Hi! I am scripting in C# to read for example the "Minimum password length" for starters. The idea is to be able to modify this and other parameters in runtime. the code I use: IProject context; context.VariableCollection["Debug1"].SetValue(0, Convert.ToInt32(context.GetDynamicProperty("MinPwLength")));
Changing linked property of a inserted symbol c#
Hi, So I'm currently working on a project for auto generated variable, screens etc. and I'm able to insert a symbol into the screen specified with my add-in, but I can't seem to find the correct way to change my linked property for a button. Example:
Eigenschaften vom Datentyp ableiten
Moin, besteht die Möglichkeit, dass man über ein Addin das Ableiten der Datentyp Eigenschaften antriggert? Vielen Dank schon einmal! This is a migrated post! Originally posted on 29.03.2022 by user a_werner. Please be aware that information can be o
OnlineVariableContainer with Initialvalues
Hello! Scenario: Our Addin is using HTTP Requests to push data. There are multiple values required to successfully push a dataset. One of this values is being changed every few seconds and is triggering our BulkchangedEvent in our OnlineVariableContainer.
Service Behavior while control element change color [Bug?]
Hi, when below code executes (attached) in running service, sometimes looks like service freezes. Seems code executes correctly (every time when I used debugger it works). But I suppose, when element in the screen changes his color (in that way as in
Service Destructor behavior (KeepAlive inside objs)
Hi, I have service, what is started when screen is opened. Inside of the service I have created few classes. Sometimes, when I operate on that screen, destructor of that service is called. How to prevent that behavior? Purpose is to save state of that
Client Dubuging
Hi, is it possible to debug client (Client Web Client Starter) running service by VisualStudio? What I need to do for this? This is a migrated post! Originally posted on 17.03.2022 by user Oleksandr. Please be aware that information can be outdated.
Import Export XML Variables
Hi, is there are some example how to use import and export XML variables approach in add-ins? In Copa-Data training that part was not highlighted This is a migrated post! Originally posted on 17.02.2022 by user Oleksandr. Please be aware that information
Zenon Object data exchange
Hi, In zenon project I have data type (bunch of structures and data types), what contains information about production object. In library for add-in, I have object with same named structure of clases and properties as in zenon project. When I run wizard,
[AddIn Service] Background worked - write variables
What is the recommended way for maximizing write operation throughput within the AddIn Engine? Let's consider the following scenario: Runtime Service does multiple writes based on the data received from the external system The data throughput is pretty
WPF System.Windows.DependencyProperty not registering property
Hi, I makes some test, what described in WPF Element manual v8.1. When I load WPF, dependency property is not in the list of properties in WPF Links. What may be reason of that behavior? Variable Linking not succeed for me on both runtime and client.
Dynamic font size on client side
Hi, what will be the best way to change font size at least for one project (or/and each loaded project on client) from client side for dedicated client? 1) Font in projects must be changed for all elements that contains font a) It would be nice to retentive
WPF Engineering Studio Wizard - External Controls
Hey, There's a little project I am working on right now and it seems there are some issues with utilizing external WPF Controls (Syncfusion) Essentially I add the nuget package containing the control, implement what I want to implement and then - upon
Get zenon project context in WPF
Hi, is it possible to get zenon project context from wpf code based project? How to do that? This is a migrated post! Originally posted on 21.01.2022 by user Oleksandr. Please be aware that information can be outdated.
WPF with code behind (update of changes behavior)
Hi, when I change something in code behind project, when I load xaml to wpf object in zenon Supervisor, no changes mades. First version of that xaml loads. If I change background at xaml only oproject, than that changes accepts correctly. So I suppose
WPF with Entity Framework integration
Hi, is it posible to use code based wpf project (inside xaml only project) with added an reference to dll, what contains entity franework dependency and app config file? When I try to use that set in zenon Supervisor I have errors. Do I doing somthing
Entity Freamwork add-ins integration behavior
Hi, I had spend some time on developing add-in with Entity Framework, and I accounting with strange behavior: after importing addin with Entity Framework to the zenon project, and generating runtime files, zenon Supervisor during executing my wizard,
Visual Studio 2022 extension
Hi, are so plans to distribute new extension for visual studio 2022? When? This is a migrated post! Originally posted on 05.01.2022 by user Oleksandr. Please be aware that information can be outdated.
ORM Layer vs zenon
Hi, in our project we many times querying sql server. Therefore, we supposed to use entity framework wor it. What is the best way to relate ORM layer vs zenon add-ins (and or project variables)? We will have dozens of sub projects and few main projects.
Threading vs data union in RAM
Hi, 1) I plan to execute one wizard for entire subproject (or if it possible for client). What I can put into "while" condition to observe is subproject (or runtime in other case) still running? 2) This while loop will be in sepparate thread. Is it good
WPF configuration demo
Hi, I'm trying to realise demo as described in manual attached, pages 24-29. But when I trying to import xaml, next error returns in zenon output, and element is blank: Error during loading XAML file 'C:\ProgramData\COPA-DATA\SQL2019\c15574cf-abb3-42af-b9bc-a793878fb02d\FILES\zenon\custom\graphics\UserControl1.xaml'
Add configuration file in zenon add-ins
Hi, I am new with add-in framework. How can i add configuration file to add-in? Thanks This is a migrated post! Originally posted on 10.12.2021 by user syamsitaufik. Please be aware that information can be outdated.
Open screen before .Show()
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/Content.html?product=addin&version=1000〈=en&id=c_015e184b9b6e14e634347a7c4215f623 This is a migrated post! Originally
Next Page