Does anyone know how to tell without just testing a specific Object Collection whether the collection Item index starts with "1" or actually starts with "0" or has the latest ST10/2019 API been fixed to make all Object Collection Item indexes start at "1" now?
I don't know of any change in the API (this would break every existing program).
Most collection start with index 1 but there are some exceptions. From memory I think collection properties of DisplayData or Geometry start at 0.
Just reading the thread subject gave me the heebie jeebies. Yet I couldn't resist to click and see...
Generally, object collections start with index 1 while arrays start at 0
Do you have an example of a collection in SE that start at 0, I will look into it.
@Tushar I'm cycling through a TextBoxes collection and the index starts at "0" for it. My issue seems to be related to ST10 as it does not error on SE 2019. Adjusting the index to start at "1" fails in both if there is only 1 textbox in the collection.
I'm cycling through a TextBoxes collection and the index starts at "0" for it.
With SE2019, I find the index for a TextBoxes collection doesn't start at 0, it starts at 1, so the loop as seen below is failing:
With SE2019 further, setting the index to 1 is working fine:
In both cases, there is only a single text box on the sheet, though having multiple text boxes didn't make a difference in either case.
I will check this with ST10 later today.
Adjusting the index to start at "1" fails in both if there is only 1 textbox in the collection.
Meanwhile, I looked up in the ST10 API help, the example uses 1 as the index which is same as what I found with actual coding in SE2019:
Can you attach the draft file with the textbox in it and the code snippet for looping through the textboxes collection?
Are you using the vanilla API of Solid Edge or the community interop, since a recent discussion mentioned that a API call was not working as expected.