You will have to iterate through the list until you find a matching element, and then call GetElementPosition() on the Element from the list which is equal to your newly created object.
List.ElementIterator()
IIterator.Next()
IElement.ElementEquals()
List.GetElementPosition()
Please ask further questions in https://forge.codesys.com/forge/talk , I think the Support Link is more for "Support with using Forge"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You will have to iterate through the list until you find a matching element, and then call GetElementPosition() on the Element from the list which is equal to your newly created object.
List.ElementIterator()
IIterator.Next()
IElement.ElementEquals()
List.GetElementPosition()
Please ask further questions in https://forge.codesys.com/forge/talk , I think the Support Link is more for "Support with using Forge"