VstaIDE Error: Unable to create macro project...
Hallo! Ich habe ein Problem beim –ffnen der VSTA-Umgebung für ein ProjectAddin. Wenn ich in einem Projekt unter Programmierschnittstellen -> VSTA -> VSTA-Editor mit ProjectAddin öffnen... auswähle bekomme ich folgende Fehlermeldung: [INDENT] VstaIDE Error:
Programm access to child project in multi-server systems in runtime
Hello, colleagues! Now we check multy-server system functionality in context of program access to child project data on up-level project. We found way to acces of child-project archive data in runtime (function archive.ArchiveVariables().ItemByIdEx).
OPC Tag
Hi Guys, This one has me baffled. We are running a Zenon application which uses an OPC Server. We are successfully collecting data from the OPC Server with no issues until now. I created a new tag using the same OPC Server. The tag does not display the
Code Beispiele gesucht
Ich bin auf der Suche nach einem oder zwei Beispielen . Möchte mit einer (Exe/dll) und dem Zenon arbeiten ! Gibt es hier irgendwelche Beispiele wie man den Zugriff von einer Exe aus machen muss. C# oder VB.Net wäre sehr gut. This is a migrated post! Originally
C#-Editor Zeilennummer anzeigen
Hallo! Ich würde gerne im C#-Editor die Zeilennummer anzeigen lassen. Kann mir jemand verraten wie ich die Anzeige aktivieren kann? Unter Options > Text Editor > Basic > Editor > Interaction gibt es die Option "Line numbers" Wo finde ich die Option für
Binding string variable to WPF, data leak?
Hi, I created a simple XAML file containing not much more than a label and a viewbox. When I try to bind the value of a string variable to the label's content, the runtime will crash. Numerical values work fine though. The variable is provided via S7
Url von HTML-Bild per String-Variable setzen
Hallo, ich suche nach einer Möglichkeit die Url beim Bildtyp 'HTML' nicht statisch - sondern variabel beim Bildaufruf zu setzen. Die Ziel-Url liegt in einer internen Variablen vor. Gibt es die Möglichkeit, die Url z.B. per VB.net anzupassen ? Schöne Grüße
Ändern der Offset-Berechnung per C# bei Variablen basierend auf Struktur-Datentyp
Hallo! Ich suche nach einem Weg die Offset-Berechnung einer auf einem Struktur-Datentyp basierend Variable zu ändern. Die Variabel lege ich per C# an und muß nach dem Anlegen in diesem Script die Offset-Berechnung ändern. In der Eigenschaftshilfe wird
How to use ActiveX in Client Network Structures
Dear ladies and gentlemen, I am using the "CD_DotNetControlContainer" and "ActiveX elements" in context with an external GUI software from third party which supports "COM" and integrate complex visualisation views from this external application in our
Shared memory online variables management
Hi, I've developed a gateway in C# to manage online variables through shared memory for reading and writing a lot of variables. It works with great performance compared the normal online variables in bulk mode expecial it's great in writing speed! But
Alarms in RUN-TIME
Hi, I have some question about alarms management in run-time only (not editor) It's possible to get alarm classes list? (read only is enought .. I don't need to set anything) It's possible to get alarm groups list? (read only is enought ... I don't need
Zenon namespace
Is there a way I can use the Zenon namespace in my own class definitions like so using zenOn; This is legal but when I try something like this: this.Variables().Item("CDS_TestBool").set_Value(0, false); I get ProjectAddin.TimingPrograms does not contain
C# Mehod not Implemented
Does anyone know why I'm getting an error: "The method or operation is not implemented" when I try to call the following macro? public void Macro1() { string strPicName = string.Empty; for (int i = 0; i < this.ActiveDocument.DynPictures().Count; i++)
Calling VSTA Macro
I've added a simple VSTA macro which displays a message public void TestButton() { MessageBox.Show("This is a test."); } When I create a function to Execute VSTA macro the Macro Selection pop up is empty. I built ths project by going to build > BildProjectAddin
I have issues with the C# WebBrowser class
I have issues with the C# WebBrowser class I have a C# WPF application which uses a WebBrowser class. I have overwritten the LoadComplete method. The question I have is this. This method is supposed to be triggered when the class has completed a load,
C# Use Variable Value
does nayone have an example of how to get the value from a internal variable and assing it to a C# variable for example something like this string errMsg; errMsg = errMsg = Variables().Item("PRC_ERROR_MSG").Value; I know that doesn't work Thanks This
C# Irksome Message Box
using an example from the forum I added the following code to catch the change event on a group of internal tags:- using System; using System.Windows.Forms; namespace ProjectAddin { [System.AddIn.AddIn("ThisProject", Version = "1.0", Publisher = "", Description
OnlineVariable.SetMemCfg & WriteBack
Ladies & Gentlemen, to speed up value updating in SICAM230 I'm trying to implement shared memory access to SICAM230. OnlineVariable.SetMemCfg uses as it's first argument a name for the shared memory area: VARIANT_BOOL SetMemCfg( BSTR szMemName, SAFEARRAY(BSTR)*
API-Zugriff auf Function-Filter
Guten Tag, ich würde gerne über die API Filter einer Bildumschalt-Funktion ( 'Screen switch' ) konfigurieren. Die Funktion ist bereits angelegt und die Filter vorkonfiguriert. Aus C# will ich neue Data-Sets anlegen, editieren und löschen. Leider ist mir
RtFunction substitution, symbol's elements access
Hello, I have problem with getting full list of variables used in screen which is substituted. So far, only solution, which I have found, is extraction of variable's names using "ItemVariable" method. It would be quite good solution, but when screen contains
Embedded IE version
Hello Im having a rather strange problem when I try to use internet explorer as an active x component. I have installed IE 9 on my computer and are using Zenon 6.51 sp0 First I added the Microsoft Webbrowser from the active x list. I could see that it
C# - write stringvalue to a Picture Element (Screen Type: Login, Element: Current user)
Hello everybody, I have tried to assign a stringvalue to the control element "current user". It apears not to be possible to reach the value thrue the object modell, there is no object which discribes the value like the object "text" of the element "static
C# form on screen
Hello I would like to know if its possible to embed a C# winform (vsta) on a screen? The only way I can seem to work with winforms is in a popup. Is there other ways? Best Regards Brian This is a migrated post! Originally posted on 18.09.2012 by user
VSTA Macro c# - Funktion "VSTA_Makro ausführen"
Hallo zusammen, ich habe probeweisen ein Makro lt. Anleitung in der Hilfe erstellt und versuche dieses über die Funktion "VSTA-Makro ausführen" auszuführen. leider kriege ich da ein leeres Makroauswahldialogfenster wo kein Makro aufgelistet ist. Die Zenon6.ini
VSTA Access to a combobox
Hi, In VSTA I'd like to access a comboBox of a screen and add new items to this combobox. something like that: C# Code: var screenElements = this.Project.DynPictures().Item("Picture_Login").Elements(); var combobox = screenElements.Item("Combobox_LanguageSelection");
WPF Usercontrol & .Net Framework Version
Hi, I would like to create WPF custom controls. Which .Net framework version is supported? Is it possible to import other libraries? regards Stefan This is a migrated post! Originally posted on 30.08.2012 by user stefan.maus. Please be aware that information
Kennung einer Variable eines Strukturdatentypes mit VSTA auslesen
Hallo, Ich habe folgendes Problem (zum besseren Verständnis, siehe Bild unten): Ich habe in Zenon die Variable "Abv" des Strukturdatentypes "DriveS1D1" erstellt. Die Kennung der Variable lautet "Ausbrandventilator". Mein Ziel ist es die Kennung dieser
Load projects during zenOn startup
I have an app like service always running on the system when windows starts. With a timer the app check if zenOn is online with the usual following code: this.zenOnApplication = Marshal.GetActiveObject("zenOn.Application") as zenOn.Application; if (this.zenOnApplication.VersionNumber
Import Step7 Projekt mit VBA/VSTA Wizard
Hallo! Ist es möglich über VBA/VSTA auf den zenon Step7 Projekt-Import zu zugreifen? Denn ich möchte in den Datenbausteinen im Step7 Projekt nach bestimmten Datenpunkten suchen und diese dann automatisch importieren. Gibt es alternativ eine Schittstellenbeschreibung
ArchiveFilter.Raster
I want to repeat unanswered topic from gz0000. I have ciclic archive and i use Raster property to decrease amount of data returned with ArchiveQuery. But no diffrerence is Raster = 0 or any other value, ArchiveQuery results with same amount of values.
Checking if a combi-element is locked
Hello, I'm trying to use interlocking to lock certain elements in my pictures. When locking a standard button, I can easily check its locking state with Element.Enable - which will return False if the lock is active. But when I lock a combi-element Element.Enable
Exception when accessing user level (possible bug?)
Hello, when I try to get the password level of the current user, like this: [VBNET] Try Dim uint_value As UInteger = CType(Me.Project.Passwords.ItemUser(Me.Project.Passwords.LoggedUser).Level, UInteger) Catch e As Exception MsgBox(e.StackTrace) End Try
CreateDynProperty for Function in VSTA
Hallo! I have 3 variables - INT.A, Replaced.A, Replaced2.A in my project. Also I have one popup screen POPUP, with field that shows INT.A value. Also I have 2 functions - INT that shows POPUP without any substitutions. REPLACED that shows POPUP with substitution
Calling a VSTA macro with parameters / reference to calling object
Hello, Is there any way to add parameters to a VSTA macro or any reference from the calling object? I want to write a universal macro wich is called in different windows (during runtime) and manipulates runtime-variables specific to that window. But without
Access Violation when iterating archive variables
Im listing the variables in our archive with the function: C# Code: private void BindArchiveVariables(TreeNode projNode, IProject iProject) { var variables = iProject.Archives().Item(0).ArchiveVariables(); var cnt = variables.Count; for (int i = 0; i
C# Variant (filter QueryBlock)
Hi Im trying to execute a queryblock, but I keep getting a type mismatch exception. The code is below: C# Code: Object pvIdList = new Object(); Object values = new Object(); try { var result = filter.QueryBlock(ref values, ref pvIdList); } catch (Exception
ArchiveValue Status bits 32-63
Hello! In VBA ArchiveValue.Status has Long type, so it can contain all 64 bits of status. In VSTA ArchiveValue.Status is just int variable, and as I understand int=Int32. So how can I get upper 32 bits of ArchiveVariable status? This is a migrated post!
Copying variables
Hi everybody, I would to know how to copy zenon variable in C# (eventually VBA), I have searched this forum, zenon documentation and found nothing. I really appreciate if someone help me. This is a migrated post! Originally posted on 02.04.2012 by user
Working with CelItems issue
Hello! I try to use CelItems() function of Cel to create alternative CEL Export function (for example export to excel). with code like C# Code: public void Macro_ExportCelToCsv() { try { SaveFileDialog saveFileDialog = new SaveFileDialog(); if (saveFileDialog.ShowDialog()
Palette Colours
Is it possible to change a individual palette coulr using VSTA by the Identification within a Palette. :) This is a migrated post! Originally posted on 12.03.2012 by user allmendinger. Please be aware that information can be outdated.
Next Page