10-28-2005 08:59 AM
10-28-2005 09:17 AM
10-28-2005 09:20 AM
That is great, thank you very much!
Julia
10-28-2005 09:39 AM
10-31-2005 12:58 AM
10-31-2005 05:46 PM
11-01-2005 09:12 AM
Hi Julia,
This method is missing in the VIEW api in DIAdem 9.1. I have been told that it has been included now in DIAdem 10, but I don't see any reference to it in the DIAdem 10 Beta1 help system. The help system is also in Beta, though, so I expect this to be available in DIAdem 10, even though I've not seen it with my own eyes yet.
Brad Turpin
Product Support Engineer
National Instruments
06-11-2015 02:36 PM
Hello,
In DIAdem 2012 I still can't find what the command is to adjust the width of the individual legend items.
Is there a script command available?
With kind regards,
Stijn
06-12-2015 08:26 AM
Hi Stijn80,
I don't have DIAdem 2012 easily available, but I found this property in DIAdem 2014, and I tested that it works. It's probably in DIAdem 2012 as well.
View.ActiveSheet.ActiveArea.DisplayObj.LegendItems(1).Width = 100
Brad Turpin
DIAdem Product Support
National Instruments
06-15-2015 06:49 AM
Thanks Brad! This also works with DIAdem 2012.
I made a script which does the next adjustments in the VIEW.
- Align the Y-axises
- Remove the Yaxis name
- Selection of the legend items
- Legend width adjustment
- Legend items width adjustment
I used an User dialog box to control the labels in the legend, the Y axis distance to the left, the legend width & the legend items width.
Now I use a pull down selection list for the Y-axis distance & the legend width.
- Is it possible to read the highest digits form the Y-axis channels and adjust the Y-axis distance automatically?
- Is it possible to read the longest length from the channel names displayed in the VIEW and adjust the legend width automatically?
I prefer it to use the VIEW instead of the REPORT, because it is easy to zoom in the VIEW. I use long data sets (vehicle data from weeks) so it consumes a lot of time to look at this data in the REPORT.
Another question, how can I pre-select checkboxes in the User dialog box?
With kind regards,
Stijn