For creating/connection to specific SolidWorks version you may create an COM Server of SolidWorks using the specific prog id. For example to create/open SolidWorks 2015 you can use
Set swApp = CreateObject("SldWorks.Application.23").
But the line above may either connect to existing instance or start new (invisible one). To make it consistent you need to use what is called ROT (Running Objects Table) which has a registry of all running applications and allows to retrieve the pointer from the table to work with: Re: How to open second SolidWorks from C#
This is not trivial task and you need to consider the following:
- Find the path of SolidWorks (you can use registry to do it from the code)
- Launch the SolidWorks and wait until it is loaded (you may need to ping the process)
- Connect to the instance by finding the pointer in the ROT.
Could you please clarify what are you trying to build as it might be another solution for you.
Thank you for your quick reply, can help a lot