[MSCE VBA] Get the Element ID after AddElement

In general, we use this method to add elements into model:

ActiveModelReference.AddElement oElement

However, we may need to use ReplaceElement method to replace part of Elements sometimes. How do we note down the Element's id added to model recently without using SelectElement method?