Origin Version (Select Help-->About Origin): 7.5G SR6
Operating System: XP
Hello again,
I´ve got the following Problem:
I have a skript that is applied to only one Set of Data at a Time. In the process, the curve "kurveDaten" is drawn to the GraphLayer "graphSchicht" on the GraphPage "graphDaten".
What I would like to do now is the following:
If the skript is run again and applied to another Set of Data, and the GraphPage from the previous Dataset is still present (hence "exists") it should draw the new Curve in the same GraphPage, on the same Layer.
So it should go something like:
Start Skript -> ... ->Check if GraphPage "graphDaten" is already present -> if so, draw to same Graphpage, if not create GraphPage and draw onthere.
So far my code looks like this, but if i run it with the GraphPage already present it simply creates a new one called "graphDaten1".
GraphPage graphDaten;
bool ExistenzG = graphDaten.Create("Daten"); // Graph erzeugen
graphDaten.Rename("Graph Datensatz");
Curve kurveDaten(tabelleDaten,0,1); // Kurve definieren
GraphLayer graphSchicht = graphDaten.Layers(); // Schicht im Graph erzeugen
int Plot = graphSchicht.AddPlot(kurveDaten, IDM_PLOT_LINE); // Kurve auf Schicht zeichnen
My Problem is, that I just cant find anything really useful to check if something that wasnt created within the skript and is therefore unknown to the skript already exists and then give this already existing "thing" a useable name.
I hope my description is understandable, already thanks a lot for your help.
Greetings
Tobi