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

application.MainWindow location

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
e.g.
502 Views, 2 Replies

application.MainWindow location

Hi,

 

I am trying to update some code I used on Autocad 2012 and, in Autocad 2014, I don't know how to get the MainWindow location.

 

In Autocad 2012 I used Autocad.ApplicationServices.Application.MainWindow.Location. How can I get this location using Autocad 2014?

 

Thank you very much,

 

e.g.

2 REPLIES 2
Message 2 of 3
Keith.Brown
in reply to: e.g.

I could be wrong but for 2014 i believe you need to reference accoremgd and then access the main window using the following two methods:

 

Autodesk.AutoCAD.ApplicationServices.Core.Application.MainWindow.SetLocation()
Autodesk.AutoCAD.ApplicationServices.Core.Application.MainWindow.GetLocation()

 

Message 3 of 3
e.g.
in reply to: Keith.Brown

Yes, that's it, thank you very much.

 

e.g.

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