Page 1 of 1

API-choose which version of TopSolid you want to run

Posted: Fri Nov 09, 2018 10:08 am
by AlexAS
Hello,
I have 2 version of TopSolid installed in my pc (v613 and v617).
I'm writing a vb program and I want to activate the already running TopSolid application (so I do not want to open a new window).
I'm using V6.17 and if I do:

TopApp=New TopSolid.Application

It opens a new windows with TopSolid v6.13.
Is there a way to write, for example:

TopApp= CURRENT TopSolid.application

OR

TopApp= TopSolid.application.versionXXX???


Thanks a lot

Re: API-choose which version of TopSolid you want to run

Posted: Sat Nov 02, 2019 8:26 am
by Holzknoten
Hi,
Same problem here.

With VB i check all processes.
Got each process for each TopSolid.
Try to translate the process HWD to TopSolid.application

No solution yet. :(

Also you have to try InteropServices.Marshal to translate process to TopSolid.application.

The first pid of TopSolid process is used to TopSolid.application.

Maybe manipulate the pid to get the correct process inside vb.

See also viewtopic.php?f=5&t=2009&p=4962&hilit=Api#p4962