.NET

Reply
Valued Contributor
e.g.
Posts: 65
Registered: ‎07-23-2008
Message 1 of 3 (146 Views)
Accepted Solution

application.MainWindow location

146 Views, 2 Replies
03-20-2014 11:28 AM

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.

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()

 

*Expert Elite*
Keith.Brown
Posts: 1,195
Registered: ‎03-13-2008
Message 2 of 3 (139 Views)

Re: application.MainWindow location

03-20-2014 12:08 PM 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()

 


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Contributor
e.g.
Posts: 65
Registered: ‎07-23-2008
Message 3 of 3 (127 Views)

Re: application.MainWindow location

03-20-2014 12:31 PM in reply to: Keith.Brown

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

 

e.g.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!