I am trying to build a class_template for CreateSpringForce, but now I have one problem. Could you tell me what's the difference between .lin.Pos[1] and Base.r[1]-Target.r[1]? There are always some differences between these two values. Even I use the same base and target nodes to build AnyKinLinear lin.
The AnyKinLinear have a Ref parameter which controls in which reference system to measure in. By default it is set to -1 which is global coordinates.
A little hint to learn about the classes is to place your cursor at the classname in the script and press F1 - that should take you to the anyscript documentation of that class.
Here you can learn about the different settings and parameters of each class.