Hello Ilhamand, You can create an attribute for automatically capturing the elevation as described in this post:
Please share if you run into any issues.