Thank you,PeterGuy .
I think there is an alternative method to solve it.I can put a button on a form,your code can be put into click-event of button.This form run with catia synchronously.User can click the button after user select a certain body,then selectelement code is trigger to output the...