Results of a line

Are there any ways to extract the results such as stress and displacement of a line in the model?

You can use profile or define a fish function for this.

Hi Xiang,
Thanks for your help! I can use the profile now.
Take this gragh as an example, there are two lines. One is horizontal and the other is vertical.
The location is given. Can you use this as an example to write a fish function?
I want to extract the stresses of the elements on the lines to the Excel.