.NET

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

application.MainWindow location

147 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,236
Registered: ‎03-13-2008
Message 2 of 3 (140 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 (128 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.