ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
DGDaniel Germann20/04/2011

Hi

I am trying to use the API of SolidWorks 2010 and C++ to automatically load a part, modify the splines that define it and save it again. The part is disk-like, just with a spline instead of a circle as circumference (the part is an extrude from a sketch that contains the spline). Other features may be defined with respect to this shape. Now I would like to write a C++ program to automatically modify this part. After loading it, the spline should be modified by moving its polygon control points (i.e. the points that actually define the NURBS curve, not the handles on the curve) to new coordinates. (Later, I may want to add new control points or delete existing ones as well, if this is possible.) The new modified part should then be stored for further use.

How can I access the control points of the spline to change their coordinates and make sure the part is updated accordingly?