How to Get E3 Viewer in VB.NET

Hi,

I would like to develop some function in E3 Viewer, but don't know how to get the application...

In common way, people usually develop in e3.Cable, and the code is 'Dim objE3App As New e3.e3Application'.

How about in e3 Viewer?

1

Comments

2 comments
  • Here is one way to do it. Modify for your application.

    Set sh = CreateObject( "WScript.Shell" ) sh.Exec( "C:\Program Files\Zuken\E3.Series_2017\E3.series.exe /view" )

    On Error Resume Next
               Set E3App = GetObject( , "CT.Application" )
               While (E3App Is Nothing)
                           WScript.Sleep( 100 )
                           Set E3App = GetObject( , "CT.Application" )
               Wend
    On Error Goto 0

    Note that using scripts in the e3.Viewer requires an e3.Viewer Plus license and even with that, you will only be able to read drawing data and manipulate the display with COM api, you cannot make changes to the drawing.

    If you have multiple instances of e3 running on the same machine, you will need to use the dispatcher to obtain the instance of the Viewer.

    There is extensive documentation on the COM API in the E3 help including examples of using the dispatcher.  Help -> Contents

     

     

    1
    Comment actions Permalink
  • Dear Mike Montalvo,

    Thank you very much!

    It works perfectly!

    I really appreciate all the help you gave!

    Thanks again!

    All the best! 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post