Aymen
Ansys Employee

Please have a look at the PyAEDT examples, especially the example concering EDB creation:

https://aedt.docs.pyansys.com/version/stable/examples/index.html

This should give an idea about how to properly create an EDB using automation. If you think there is an issue with PyAEDT, please file it here:

https://github.com/ansys/pyaedt/issues