Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

selection.pickpoint after closing a modal dialog

3 REPLIES 3
Reply
Message 1 of 4
a7v1n
745 Views, 3 Replies

selection.pickpoint after closing a modal dialog

hi. how come revit just hangs everytime i close a modal form using me.dispose() and immediately calling selection.pickpoint after it?

 

i dont have this problem if the form is modeless.

 

Thanks!

3 REPLIES 3
Message 2 of 4
jwells
in reply to: a7v1n

Me too.  I wish I understood why.  If I have Visual Studio open, then it jumps to VS after the dispose method.  It like it lost focus.  Revit is totally hung up at that point.

Message 3 of 4
ollikat
in reply to: jwells


close a modal form using me.dispose()

Why are you closing dialog with Dispose() method. Is it realy instructed to do so? Shouldn't you call Close() etc. first?

Message 4 of 4
Joe.Ye
in reply to: ollikat

 

You can asign a value to DialogResult property to close the dialog

 

me.DialogResult = DialogResult.OK

 

The if you want to show it again, just call form.ShowDialog().

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network

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


Rail Community