I have a sketch segment that I need to copy and move without using the ID of the line. I've tried to search google and through the help files and the only answers I find are ones that use the ID of the sketch line.
2018 SOLIDWORKS API Help - MoveOrCopy Method (IModelDocExtension)
this requires selection of the line
2018 SOLIDWORKS API Help - Move Copy Sketch Entities Example (VBA)
I attempted to set swLine = swSketchSeg where I Dim swLine As SldWorks.SketchLine. I thought that this would work but I was wrong. I'm just learning SolidWorks macros.
Retrieving data ...