I want to get graph between force and displacement of nonlinear spring ..Boundary conditions is fixed support and force
This question is a bit vague and possibly posted to the wrong forum. This forum is reserved for questions related to automation and scripting. Can you please clarify your modeling intent, and specific actions you want a script to perform. depending on what you want there may be a non-scripting solution.
You probably want to use a chart:Model.AddChart()
Model.AddChart()
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v232/en/mech_obj/ds_Chart_o_r.html#ds_Chart_o_r
For general information on charts, please contact your technical support provider.