.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ACAD on Top

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
144 Views, 0 Replies

ACAD on Top

When getting the current session of ACAD I use this code:

Dim myApp As AcadApplication
Dim acadDoc As AcadDocument

Try
myApp = Marshal.GetActiveObject("Autocad.Application.16.2")
acadDoc = myApp.ActiveDocument
myApp.Visible = True

The code gets the running session of acad ok, but does not display it. How can I have the running session placed topmost on the screen, visible to the viewer. The similar code in vb6 did this with no trouble at the .visible = true command.

thanks
mark c.
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost