[TS6] [VB 2010]: Dim TopSolid.Application the correct way in Win 10 ?

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

Post Reply
Holzknoten
Master Corporal
Master Corporal
Posts: 31
Joined: Fri Apr 29, 2011 7:16 am
TopSolid Module: TopSolid'Wood
TopSolid Version: 6.14
Location: Münster

[TS6] [VB 2010]: Dim TopSolid.Application the correct way in Win 10 ?

Post by Holzknoten » Mon Feb 05, 2018 7:10 am

I use Visual Basic 2010 Express to automate TopSolid V618 in Windows 7 x64.

Now i got Windows 10 x64 and trouble with definition of TopSolid.Application.

The API examples of TopSolid Api documentation looks like this:

Code: Select all

Dim TopApp As TopSolid.Application
TopApp = New TopSolid.Application 'This starts TopSolid, if not already open or use current TopSolid in Win 7 x64
But in Windows 10 x64 it does not work.
When i open already TopSolid and start my VB-program as administrator the code above open again a TopSolid.Application. Why?
So my VB-program use the wrong TopSolid.Application

I try also to define a Object of TopSolid.Application like the VB-Way.

Code: Select all

TopApp = CreateObject("TopSolid.Application") 'This starts TopSolid, if not already open or use current TopSolid in Win 7 x64

Code: Select all

TopApp = GetObject("TopSolid.Application") 'try to use already open TopSolid in Win 7 x64. Doesn't work.
System.Exeption
{"The ActiveX-Component was not create."} (translated from German to English)
Is there a way to define direct (DirectCast) the open Process of TopSolid ???
by Holzknoten

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest