Get boolean IsTopSolidOpen
Moderators: remi77, jacs, Daniel
-
- Master Corporal
- Posts: 49
- Joined: Tue Sep 29, 2015 2:48 pm
- TopSolid Module: TopSolid'Cam
- TopSolid Version: 6.26
Get boolean IsTopSolidOpen
Hello!
Does somebody knows how to het if TS is already open?
not IApplication.IsConnected, before connect i want to know if TS is open.
Thanks!
Does somebody knows how to het if TS is already open?
not IApplication.IsConnected, before connect i want to know if TS is open.
Thanks!
- JuP
- Major
- Posts: 169
- Joined: Tue Sep 09, 2014 5:45 pm
- TopSolid Module: TopSolid'Steel
- TopSolid Version: 7.14
Re: Get boolean IsTopSolidOpen
Hi !
A possible way is to check windows applications processus : Check all open processes and verify the name for each (Process.GetProcesses() + Process.GetProcessName()) or use Process.GetProcessesByName and create a control like the length or something like that.
Good luck !
A possible way is to check windows applications processus : Check all open processes and verify the name for each (Process.GetProcesses() + Process.GetProcessName()) or use Process.GetProcessesByName and create a control like the length or something like that.
Code: Select all
If Process.GetProcessesByName("TopSolid").Length > 0 Then
TopSolidIsOpen = True
End If
-
- Master Corporal
- Posts: 49
- Joined: Tue Sep 29, 2015 2:48 pm
- TopSolid Module: TopSolid'Cam
- TopSolid Version: 6.26
Re: Get boolean IsTopSolidOpen
Hello!
Thanks for replying!
i'd found a way to get, just add
TopSolid.Kernel.Automating.TopSolidHost.Connect(false, 3);
if TS is open, will connect, otherwise not.
Thanks!
Thanks for replying!
i'd found a way to get, just add
TopSolid.Kernel.Automating.TopSolidHost.Connect(false, 3);
if TS is open, will connect, otherwise not.
Thanks!
-
- Master Corporal
- Posts: 49
- Joined: Tue Sep 29, 2015 2:48 pm
- TopSolid Module: TopSolid'Cam
- TopSolid Version: 6.26
Re: Get boolean IsTopSolidOpen
aw, np!
are you a missler employee?
BR
are you a missler employee?
BR
- JuP
- Major
- Posts: 169
- Joined: Tue Sep 09, 2014 5:45 pm
- TopSolid Module: TopSolid'Steel
- TopSolid Version: 7.14
Re: Get boolean IsTopSolidOpen
yes, I'm pre-sales technician in Francegmanucci wrote:aw, np!
are you a missler employee?
BR
-
- Master Corporal
- Posts: 49
- Joined: Tue Sep 29, 2015 2:48 pm
- TopSolid Module: TopSolid'Cam
- TopSolid Version: 6.26
Re: Get boolean IsTopSolidOpen
oh, nice!
-
- Master Corporal
- Posts: 43
- Joined: Fri Apr 29, 2011 7:16 am
- TopSolid Module: TopSolid'Wood
- TopSolid Version: 6.17
- Location: Hannover
- Contact:
Re: Get boolean IsTopSolidOpen
Is there a simular way for TopSolid 6.18 ? #
???
I use this in TopSolid 6.18 and VB2010
or
Both use the first open TopSolid or open a new one.
I want to direct select the TopSolid.Application from many TopSolid.Applications
Code: Select all
TopSolid.Kernel.Automating.TopSolidHost.Connect
I use this in TopSolid 6.18 and VB2010
Code: Select all
Dim TopApp as TopSolid.Application
TopApp = new TopSolid.Application
Code: Select all
TopApp = CreateObject("TopSolid.Application")
I want to direct select the TopSolid.Application from many TopSolid.Applications
by Holzknoten
-
- Master Corporal
- Posts: 49
- Joined: Tue Sep 29, 2015 2:48 pm
- TopSolid Module: TopSolid'Cam
- TopSolid Version: 6.26
Re: Get boolean IsTopSolidOpen
As far as i know, it isn't possible, it will take always the first opened client, on TS7 there is an option for selecting the client by pipe name.