It is often required to determine the position of a mechatronic object within the children of a mechatronic component
mc.mos.indexOf(this)
This applies if the first object has the index "0". If the count should start at "1" the formula is to be extended as follows:
mc.mos.indexOf(this)+1