Hello everybody. I have a peculiar problem with API when I have selected a component in an assembly, and counted the points in 3DSketch, I want to insert components for every point in the Sketch. But I am unable to add a component because the Sketch is still active. How do I go back to activate the Assembly.
first getedittarget
2016 SOLIDWORKS API Help - GetEditTarget Method (IAssemblyDoc)
if not nothing then EditAssembly
2016 SOLIDWORKS API Help - EditAssembly Method (IAssemblyDoc)