I'm a bit new to Solidworks API and I'm struggling to find the answers to my problem.
I need to be able to redefine which sketch segments (whether they are lines, arcs, splines, or whatever) are used in surfacing features with some sort of macro. What I'm trying to accomplish is this:
There are a lot of features (as well as features in another plugin) that are dependent on a sketch very early in the feature tree. This "baseline sketch" is derived from empirically collected "real world" data points in a sketch above it in the tree. What I'd like is to be able to import different "real world" data points into a different sketch (at the top of the feature tree), create an new "baseline sketch" based on it, and replace the old sketch entities that drive all of the features with the new sketch entities. Is there some sort of line/spline/arc ID that I can reassign using API tools? Or can I rename the handles/pointers that identify the sketch entities to "trick" Solidworks into rebuilding all of the features based on the new data?
The whole goal here is to have a template part that can be customized to any set of real world data points so as to minimize "clean up" lower down in the feature tree.
I've attached a sample file that demonstrates what I'm trying to accomplish. It's very much simplified from the actual files I'm dealing with.
Any ideas?
SolidworksApi macros