thanks for your reply
it was helpful
but actually i need to detach all element in my model and it is not possible with using GUI commands.
So i decide to use programming like ansys.
now i can use while and for command but the problem is how to detach elements within a while loop
i wrote these...