I was able to use an existing code snippet to create (or clone, if it already exists) a particular curve. However, if a curve of that name (say "Curve") already exists, then this will add another curve (say "Curve 1"), and each time this is called, there will be another (say "Curve 2", etc.) - the meaning of clone, I suppose.
library_Factor2 = curve.get.to_ModelObject.get.clone(model).to_CurveBiquadratic.get
Is there a way to replace (or first delete and then create) that curve, so that I will only ever have a curve named "Curve" in the model? Something like (hopefully it is that easy) the following, perhaps?
library_Factor2 = curve.get.to_ModelObject.get.replace(model).to_CurveBiquadratic.get
Where the replace function would either create or replace, not create or clone?