Hi all,
This question is specific to programming with the SolidWorks API in C++.
I have a piece of code in which I've just opened a model (using OpenDoc6), and I know the name of a sketch in this model from which I want to start getting data. How do I get the pointer to the sketch (i.e. the ISketch pointer) using the known name of the sketch? I thought I should use SelectByID2, but the return pointer from this function is ICallout, not ISketch. Any suggestions? Thank you!
SolidworksApi macros