Application.ShowModalDialog is Missing

Application.ShowModalDialog is Missing

jdaltonAWVZ3
Participant Participant
516 Views
1 Reply
Message 1 of 2

Application.ShowModalDialog is Missing

jdaltonAWVZ3
Participant
Participant

Hi there, 

I was going back to fix an issue from a previous program, which used an older API. When I went in and updated the references, all the Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog() dependencies no longer have a reference. For some background, I have some windows forms that I wish to show the user so they can input the information, and it did work before. The closest thing I could find within the new API is Application.ShowModalWindow() but going down that path it is asking for a presentation framework. it is also hard to find anything about it on the internet. Any help would be appreciated!

0 Likes
Accepted solutions (1)
517 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant
Accepted solution

Hi,

Application.ShowModalWindow and Application.ShowModelessWindow are part of the Autodesk.AutoCAD.ApplicationServices.Core namespace defined in AcCoreMgd.dll.

Application.ShowModalDialog and Application.ShowModelessDialog are part of the Autodesk.AutoCAD.ApplicationServices namespace defined in AcMgd.dll.

So, you have to reference AcMgd.dll and sprecify the complete address: Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub