DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
jakidd

Need a global setting to set the default type for 2D Axis View Display (Stair Curve instead of Line)

Status: Declined

Hello jakidd,

Thank you for your request. We understand your suggestion but given the age of this entry and the fact that just a few sponsors are supporting it, we have decided to decline this suggestion and prefer to develop more frequently requested features instead. We hope you understand this. 

 

Greetings

Walter

The default type for a 2D Axis view display is line, but for all our signals we need stair curve. So I have to manually go to display settings and set the type to stair curve for every channel. If there are many channels that is very tedious. It would be nice to have a global setting that can be set for all view displays.

 

Untitled.png

2 Comments
conzemic
Member

While almost everything could be set in dialogs or ini-files, sometimes it may only take a few lines of code to get the same result. The attached example uses the "for each ... in ...next" construct to change all "lines" to "step curves".

 

'-------------------------------------------------------------------------------

'-- VBS-Script-Datei

'-- Neu erstellt am 04.12.2012 07:42:39

'-- Ersteller: ---

'-- Kommentar: ---

'-------------------------------------------------------------------------------

Option Explicit

Dim oMyDisplayObj, oMyCurve

Set oMyDisplayObj = View.ActiveSheet.ActiveArea.DisplayObj

for each oMyCurve in oMyDisplayObj.Curves

oMyCurve.Type = "Step Curve"

next

 

To make it absolutely fool proof, some checks for f.i. "is VIEW-object really 2D-curve" etc. may be necessary.

Additional enhancement to make it run not only in "Active Sheet.ActiveArea" but "All Sheets.AllAreas-if-2D-curve" could be added.

 

But if it works, place it on a script button and it's only one click away...

Michael

Walter_Rick
NI Employee (retired)
Status changed to: Declined

Hello jakidd,

Thank you for your request. We understand your suggestion but given the age of this entry and the fact that just a few sponsors are supporting it, we have decided to decline this suggestion and prefer to develop more frequently requested features instead. We hope you understand this. 

 

Greetings

Walter