Hello. I want to create a spline from 2 or more arcs, and find the y position of the spline's starting and end point. I want the macro to do it in one go; just select the arcs, and it should create the spline and gives me the y position without anymore selection with mouse.
The creation part went well, but I do not know how to command the macro to select the new spline. Selection with SelectionManager.GetSelectedObject6 requires mouse selection input, and SelectbyID2 requires the spline's name (which SolidWorks seems to run the number continuously, not regarding deleted spline).
Is there a way to wither 1. select the last-added sketch segment or 2. get the name of the last-added sketch segment? The 2. would be more useful, but if I can do 1., I could get the name from SketchSegment.GetName.
Thank you in advance for your help.