Bild zurück Schablonen festlegen
Hallo, ich möchte mittels VB.NET eine Funktion des Typs Bild zurück anlegen und die zugehörige Schablone übergeben. Zurzeit versuche ich es mit folgenden Code: [VBNET] Dim Funktion As IRtFunction = Haupt.ActiveDocument.RtFunctions.Create("Test", 4) Dim
VSTA Code not the same in RT than in Develeopment
Hi, I am currently encounter a very serious problem. Let's say we have a Global and an Integration project. In the integration project I have two more projects (for example P1 and P2) When I change the VSTA code in P2 it will not be copied to the runtime
COM Exception
Hallo liebe Community, ich bekomme bei einem unserer Rechner folgenden Fehler wenn ich mich versuche über die COM Schnittstelle zu verbinden: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with
Path.Combine
Hallo Zusammen ich möchte die Methode Path.Combine() ausführen. Combine wird aber nicht im IntelliSense angeboten. System.IO ist eingebunde This is a migrated post! Originally posted on 26.06.2015 by user armins. Please be aware that information can be
Rema-Object einem Limit zuordnen...
Hallo, wie kann ich eine zuvor erstellte Reaktionsmatrix (Rema) einem Limit zuordnen? Es geht genauer um das Belegen des Feldes "Rema" im Reiter "Limits". Danke. This is a migrated post! Originally posted on 15.06.2015 by user nollh. Please be aware that
Zugriff auf Farbpalette
Hallo, ich möchte einem State einer Reaktionsmatrix einen Farbwert zuweisen. Im globalen Projekt sind unter Farbpalette bereits einige Farben angelegt. Wie kann ich aus C# heraus auf diese Farbpalette zugreifen? Die Zuweisung mittels vState.Color = Color.Red;
Anlegen einer Reaktionsmatrix
Hallo, ich suche momentan die Möglichkeit aus C# einen Eintrag in die Reaktionsmatrix zu bewerkstelligen. Leider bisher ohne Erfolg, d.h. ich finde das entsprechende Objekt nicht. Welches Objekt muss ich denn verwenden? Danke. This is a migrated post!
if Anweisung funktioniert nicht
Hallo, kann mir jemand sagen, warum die folgende Anweisung „false“ ergibt, obwohl die zwei Variablen den gleichen Wert haben (auch den gleichen Datentyp): C# Code: if (obZ_Par_Var.Item("Zellen_Parameter_CmbBox_Sel_Item").get_Value(0) == obZ_Par_Var.Item("Trend1_CmbBox_Sel_Item").get_Value(0))
Export DataSet Using C#
Hi, I am new in web development. I have little problem. Could you help me please? For your information, I'm using asphostportal.com hosting and I have windows account that supports .NET 4.5. Is there any way or codes for export dataset or datatabe to
Automatisches Zusamenstellen des Quellestrings für Verknüpfungsregel
Hallo! Ich suche eine Möglichkeit den Quellstring (SubstituteSource) für ein im Bild verlinktes Symbol per c# zu generieren. Das Symbol liegt in der Projekt-Symbolbibliothek und besteht aus einer Vielzahl weiter Symbole (auch ineinander verlinkter Symbole).
Archiv Werte importieren
Moin, wir sind gerade dabei per VSTA ein Markro zu programmieren, welches automatisch Werte für einen bestimmten Zeitraum in ein ausgewähltes Archiv importiert. Hierfür verwenden wir eine CSV-Datei, in der die Daten aufgelistet sind. Das Archiv speichert
Dateibrowser
Hallo. Ich benötige den Namen einer mit einem Browser auszuwählenden Datei für die Weiterverarbeitung. Mit dem OpenFileDialog klappt es nicht Ich habe den "Microsoft Common Dialog Control 6.0" als Referenz eingefügt. Ich habe ihn dann folgendermaßen in
"strObjectType = TypeName(obObject)" in C# ?
Hallo, ich stehe wohl gerade auf dem Schlauch... Dazu suche ich den Code in VSTA (C#): VBA Code: Private Sub ZenWorkspace_OnObjectCreated(ByVal obObject As Object) 'this Event is fired, when a new object is created within a project... Dim obPicture As
VB.NET - Windows Form Export/Import
Hello all, I have developed a small programm which uses a Windows Form. How can I export the form to use it in another Project? Thanks a lot best regards idkj This is a migrated post! Originally posted on 30.04.2015 by user idkj. Please be aware that
Sprache / Sprachdateien / Keywörter
Hallo, laut zenon-API Map (Stand 08/2014) gibt es Methoden etc für die LanguageTable. Wie greife ich darauf aus C# zu? Ich finde im Objectkatalog nichts, kein CreateFile oder GetString. MfG HorstD This is a migrated post! Originally posted on 29.04.2015
Datentyp der Struktur-Variable ermitteln
Hallo, wie ermittle ich den Datentypen der Struktur-Variable? Wenn ich die Strukturvariable auslese bekomme ich aus der Property .DataType statt des wirklichen Datentypen z.B. ein IEC_UINT angezeigt, obwohl der Daten der Strukturvariable z.B: "DT_XYZ"
DynProperties
Hallo, gibt es irgendwo eine Auflistung welcher Properties es zu welchen Type gibt und welchen Wert sie annehmen können? Die Methoden Try&Error und Reverse Engineerings probiere ich schon. Dauert aber teilweise lange und ist fehlerbehaftet :( Gruß HD
How to set Alarm, Function and AML_Call
Hi, is it possible to set the Alarm-, Function- and AML_Call-Property to a specific value out of c#? I tried to use the following syntax but it doesn't work... zSubVar.DynProperties["Alarm"] = 1; zSubVar.DynProperties["Function"] = "Fct_STS_" + pVar.ScreenName;
Aus Variablen die größten Fünf ermitteln
Hallo Community, Aufgabe: Ich möchte aus 17 Variablen jeweils die größten fünf Werte ermitteln (Werte ändern sich ständig) und diese weiterverarbeiten. Frage: Ist dieses Vorhaben in PCE (also mit VB Script möglich) oder sollte man dafür auf VBA wechseln
How to display thread window in VSTA dev.
Dear support, Is there a way to display the thread window while debbuging in "microsoft visual studio tools for applications 2.0" ? I don't find it in "Debug => Windows => [...] ". Best regards, Loan. This is a migrated post! Originally posted on 13.04.2015
Treiber automatisch anlegen
Moin, wir möchten mittels einer VB.NET Anwendung automatisch Treiber für eine SAIA Steuerung anlegen. Zur Zeit verwende ich folgenden Code-Schnipsel. [VBNET]Dim treiber As New Driver treiber = Me.ActiveDocument.Drivers.CreateDriver("Test", "SAIA_Directly32.exe")[/VBNET]
ListBox VSTA
Dear supports! I want to execute some code depending the selected entry number of a listbox. I'm already able to execute a VSTA macro in listbox properties, but I want to do it access in VSTA! ( I don't want 14690 macro to manage the listbox ). Secondary
SystemModelGroup for variable
Hi All I'm using zenon v 7.11. Is it possible to get a property of variable "SystemModelGroup" in Runtime with VSTA? This property is existing in DynProperties of variable but I can't get its value or text. Best regards, Dmitry This is a migrated post!
Adding varibales to Zenon-Editor very slow
Hi, I have written a c# application which reads variable definitions from an excel sheet and create those structures in Zenon over an open Zenon-Editor. To say it straight forward - not the best solution to recommend customers to add variables to a zenon
Ungeladene Projekte ermitteln mit C#
Hallo, ich möchte mit C# eine Wizard bauen, der für alle Projekte die Runtime-Files erzeugt. Meine Frage dazu, wie kann ich Projekte (Namen, GUID, usw...) ermitteln wenn sie nicht im Speicher gehalten werden? œber ein kleines Beispiel wäre ich dankbar.
Suche nach Zugriff auf Variablen (Platzhalter) in verknüpften Symbolen
Hallo! Wir entwickeln momentan in zenon (7.10) eine neue Symbolbibliothek für unsere Firma. Die Symbole werden aus verschiedenen Ebene zusammen gesetzt: Symbolebene 1: [INDENT]Grafische Grundsymbole ohne Animationen[/INDENT] Symbolebene 2: [INDENT]Verlinkte
Activate a button in VSTA (to Acquit alarms)
Hey, Is it possible to activate a button in VSTA ? I want to acquit all alarms in another synoptic (normal type). Even if there is another way to acquit alarms, I'm still interrested to know how to activate a button in VSTA ! Best regards, Varnizy Loan.
WPF User Control in VSTA ProjectAddin erzeugen und in Zenon 7.11 verwenden
Hallo, Ich möchte in VSTA zur Laufzeit (ProjectAddin) ein "User Control (WPF)" erzeugen. Dieses möchte ich dann unter Zenon als WPF-Element einbinden. Ist dieser direkte Weg möglich, oder muss ich den Umweg über eine .dll-Datei gehen? This is a migrated
Access to pitch angle in C#
Hey! I want to change the pitch angle of a quarter circle. C# Code: zenOn.IDynPicture Faceplate = this.DynPictures().Item("Faceplate_01"); zenOn.IElement element = Faceplate.Elements().Item("Gauge_1"); What are the properties of pitch angle ? This is
c# WPF Binding Properties
Hallo, ich möchte Properties einer WPF ComboBox mit Hilfe von Binding beschalten. Die ComboBox.ItemSource wird an eine ObservableCollection gebunden. Als "Rückgabewert" wird der SelectedValue an das Property ComboBoxReturnValue(int) gebunden. Den DataContext
How to Access a from inside a dll from zenon editor
Hello every body, I have developed a dll and embeded it in zenon with ActiveX element. Now I want to open a form which I placed in dll project dy clicking on the element in zenon editor. Can I do it by using Reflection? The dll project has been developed
How to set the symbolic address????
Hi, I am able to create Variables in an open Zenon Editor. Unfortunately I can't find any property which has the name SymbAddr (like NetAddr or BitAddr). How can I set the symbolic address in a subitem?? Here is my code... C# Code: // add variable to
Add Variables with C# to Zenon (Editor-Mode)
Hi, I am searching for a solution to add variables with C# to an open Project in the Zenon Editor. I am currently using the following code... C# Code: this.zVariable = this.zProject.Variables() .CreateVar(psVariableName, null, tpKanaltypes.tpSystemVariable,
How to deploy .NET Activex
Hello, I have developed an activex in Visual Studio 2012 and I want to deploy it. If I build the project in local machine where I have develoed the control every thing is ok and it works ok. But if I make a installer for it and install the activex control
Variablen in C#
Hallo, wie kann ich in C# Variablen verwenden, die ich in Zenon über den Variableneditor generiert habe? VG Robs This is a migrated post! Originally posted on 03.03.2015 by user robs. Please be aware that information can be outdated.
WPF Pie Chart real time update
Hi I have follow the blog (http://blog.copadata.at/wp/using-the-wpf-element-combined-with-additional-assemblies-pie-chart-1/) to create the WPF Pie Chart in Zenon. But the Pie Chart only update when I switch to its screen everytime. How to make this Pie
.NET Framework version
Hey! Which .NET Framework version actually works on zenon 7.11 ? Best regards. This is a migrated post! Originally posted on 19.02.2015 by user loanvar. Please be aware that information can be outdated.
Klartext (Name) zu Berechtigungsebene (Nummer) in RT per C# auslesen
Hallo, in meinem Projekt ist es notwendig in der Runtime die Klartexte (Namen) zu Berechtigungsebenen (Nummer) die ein Benutzer besitzt auszulesen um mit diesen Texten dann weiter zu arbeiten. Gibt es eine Object in der RT, über dass die Nummer/Namen-Zuordnung
Get symbols programmatically
Hello, how can I programatically (C#) get the list of the symbols in the symbol library of my project? I would like to get the available symbols and choose one of them and insert them in a Picture in my Project. Hallo, Wie kann man programmatisch (C#)
C#: String mit Datum (dd.MM.yyyy) in DateTime oder Unix Timestamp umwandeln
Hallo, versuche verzweifelt über VSTA (C#) eine Stringvariable von Zenon, die ein Datum im Format dd.MM.yyyy enthält ins DateTime oder Unix timestamp umzuwandeln um diesen als "SelDay" in folgendem Codeteil zu verwenden: C# Code: public void Macro_SelectedDay()
Next Page