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

Re: Registering a Revit Event handler using VB

$
0
0
oh, I just noticed that what you suggested for C# event handler registration isn't quite what we might expect to see. In C# to add an event handler it looks a lot like this:
revitApp.ControlledApplication.DocumentOpened += myDocOpenedHandler;

Note, there is no mention of arguments as they've already been agreed upon by the delegate type e.g. (object sender, DocuemntOpenedEventArgs [or something like that]) and the myDocOpenedHandler function definition just needs to adopt that set of parameters to be a "match"

Viewing all articles
Browse latest Browse all 66683

Trending Articles



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