formerpigeek

How to add a cursor to a Batch Trend

Discussion created by formerpigeek on Sep 22, 2009
Latest reply on Mar 2, 2010 by andreas

Hello guys,

 

I'm searching a solution to add a cursor to a Batch Trend from a C# Process Book Add-In.

 

I tried different ways but I had always casting or COM errors.

 

Is it possible to do it from the Add-In and not from VBA ?

 

The

((OSISoft.ProcessBook.BatchView.Cursors) <BatchGroupObject>.Trends.Item("BatchTrend1").Cursors).Add(<NewCursorObject>);

 

doesn't work because I'm not able to create a new Cursor object.

 

Do you have some good idea for me ?

 

I thank you all.Have a nice day.

 

Best regards,
Gabriele

Outcomes