Support Board
Date/Time: Mon, 27 Jan 2025 04:41:48 +0000
Post From: Dynamic SCFloatArray Names
[2019-02-19 06:13:24] |
User470516 - Posts: 78 |
Thanks, I will be more specific then. In study A, I dynamically create n sc.Subgraphs, n being an user defined input. Study A code is as follows: SCInputRef n = sc.Input[0];
n.Name = "user_number"; n.SetInt(10); for (int i = 0; i < n.GetInt(); i++) { sc.Subgraph[i].Name.Format("subgraph_number %d", i); ... } This works fine and changes the names and number of study A Subgraphs to match the n Input value. Now, in study B, where my problem is, I would like to get the sc.Subgraphs[][] arrays from study A. Those arrays need to be set in the SubgraphArray parameter of the sc.GetStudyArrayFromChartUsingID() function I intend to use to do so. I therefore need to dynamically create n instructions that would look like: for (int i = 0; i < n.GetInt(); i++) { SCFloatArray StudyReference_i; sc.GetStudyArrayFromChartUsingID(StudyA.GetChartStudySubgraphValues(), StudyReference_i); ... } Of course written as such, it does not work and I do not find in the documentation something that would help me do this exactly the way ACSIL Programming Concepts: Dynamic Graph Names helped me dynamically create the sc.Subgraphs in study A. In other words I would need to create dynamic SubgraphArray parameters for sc.GetStudyArrayFromChartUsingID(). I hope this makes sense and I thank you for your support. Regards, Date Time Of Last Edit: 2019-02-20 02:41:26
|