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()
For general information on charts, please contact your technical support provider.