This is not a helpful method for me. I am trying to create a named selection. not use any created named selection. it would be easier for me to create based on the edge id. Even if it changes if i put it in a python script it will not matter then. If there is any script command that will create based on vertex then that will be helpful. but i don't see such a command.

So please tell me if there is any way of getting the edge ID in a file.