Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66666

Re: how to cancel pick objects operation from modeless form in revit, URGENT

$
0
0

Well that's going to depend heavily on how you are interacting with the revit api. Are you doing ALL logic in the form class or do you have separate classes for accessing the api?

 

Regardless, you need to add an event handler to the Form.FormClosing event. Something like:

 

//Put this line in your form constructor

this.FormClosing += CloseAllTheThings;

 

void CloseAllTheThings(object sender, EventArgs e)

{

    //Close and release stuff

}


Viewing all articles
Browse latest Browse all 66666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>