Removal of Dispendencies
Mike German
I am running Version: 8.0.4.2 (Build 34722) under Windows 10 Pro OS
Situation:
My current experiment has six polar plots (New Polar Graphs); they take a while to set up, so I have them saved as recreation windows. Each New Polar Graphs sets up 3 dependencies. When I want to kill the waves used in these graphs I have to delete all 18 dependencies individually using the Object Status menu item.
Question:
Is there another way that would allow me more easily, to kill these waves?
When the Polar Graph has been closed, you can delete the associated (derived) waves and their dependencies by calling WMKillPolarGraphDataFolder. Your polar data will be unaffected.
String subfolderName // "PolarGraph0", for example, corresponding to root:Packages:WMPolarGraphs:PolarGraph0
March 15, 2021 at 11:46 am - Permalink
I assume WMKillPolarGraphDataFolder(subfolderName) is user function and that I would use killDataFolder
With all polar plots closed (but as said above, recreation windows retained) at the command prompt
generated error as in file attachment delete snip 1 .png .
I also tried deleting from DataBrowser and a similar error as per delete snip 2.png
March 16, 2021 at 03:24 am - Permalink
Just use the function provided by Jim. For example, call
WMKillPolarGraphDataFolder("PolarGraph7")
to delete the folder of graph 7.
March 16, 2021 at 07:00 am - Permalink
In that case, I don't see all of the procedure that Jim has given. All I see is snip 3.png.
March 16, 2021 at 07:28 am - Permalink
The function WMKillPolarGraphDataFolder() is part of the polar graph package which you have loaded in your experiment to create the polar graphs. So it is already available to you and you only need to execute the function in the command line with the graph title of your choice. There is no need to create any code or know the details of this function (you can have a look inside the PolarGraph package if you are curious, of course).
March 16, 2021 at 08:11 am - Permalink
I didn't have a clue that it was already there! Anyway, it does the job as decribes and removal allows killin waves previously linked to dependencies - thanks
March 16, 2021 at 08:35 am - Permalink
Only problem now is that none of the recreation windows work! So, unfortunately, not an answer to my query. And I have to reconstruct 8 rather complicated Polar Plots!
March 16, 2021 at 08:43 am - Permalink
So, is there a way to get the polar graphs back to where the were from an earlier copy of the experiment into the current version? There is a lot of work here :-(
March 16, 2021 at 09:03 am - Permalink
If you want to keep the polar graphs viable, why are you killing the waves they depend on?
What is your goal?
March 16, 2021 at 11:10 am - Permalink
I keep an "active" set of waves for 27 waves that I add to every month by concatenating an additional set with new monthly data. When changes are made to the system for example I need to start a new active set.
There are other ways I could have done this.
Now i have learned the hard way i will know what not to do!
March 16, 2021 at 11:21 am - Permalink