Support Board
Date/Time: Tue, 15 Apr 2025 13:23:39 +0000
Post From: sc.GetStudyIDByIndex / sc.GetStudyIDByName always return 0
[2025-04-11 11:50:43] |
Richard Chinn - Posts: 33 |
Thanks for the response and I did think about that. That's why in my tests I manually used not only the S_ID numbers which are being returned correctly by sc.AddChartToStudy, but I also manually substituted all of my study instance numbers (1-10) in the tests. These are the numbers that show in the top line of the screen and also to the left of the study name. I never got anything but 1 on chart 1 and 0 on charts 2-8. Also sc.GetStudyIDByName always returns 0. I tested both because to be honest what documentation was there was hard for me to understand. My clue in the documentation that the S_ID number might be the right parameter was that it returns a sc.StudyGraphInstanceId. If you look that up it says: The StudyGraphInstanceID is a unique number assigned to each study on a chart. This identifier number is for the particular instance of your custom study which is applied to the chart. This ID number can be seen in the Chart Studies window on the right side of the study name in the Studies to Graph list.
Date Time Of Last Edit: 2025-04-11 11:54:16
|