...or if you know the equation, consider just using a "Law Curve" feature directly, without programming.
On what
might be a related note, I had a customer ask about a similar scenario just this week at PLM World... He was wanting to:
a) import a set of points, create curves through them, and loft a surface through the curves
...and then be able to...
b) import a new set of locations for those same points, and have the curves and surface update to the new locations.
Sitting there in the Siemens booth, we did this in the end by:
1. Creating a set of point
expressions first, representing his set of points
2. Creating a set of point features, each of which [associatively] referred to one of the point expressions
3. Creating a set of splines, each of which [associatively] referred to a set of point features
4. Creating a surface, referring [associatively] to the splines
...and then to replace the points, we edited the underlying values of the point expressions all at once by importing an expressions file (.exp, imported via the Expressions dialog.) This replaced the values of all of the point expressions, which updated the point features, which updated the splines, which updated the surface. And it all hangs together associatively like a champ.
We also explored using a journal to automate the creation of all of the point features, so that he could quickly copy and paste using his text editor instead of physically clicking through the creation of his moderately large set of points. The original expressions can similarly be created all at once using a .exp import file. (For the format of that baby, just export a few expressions and look at what you get.)
Does that make sense?
Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)