Help with event triggered program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I haven't done much event triggered programming in Revit so I'm hoping I can get some direction from y'all.
I want an alert to display when the user applies paint to a face in the model (or in the family editor), and I'll need info on the object that is being painted for the alert info. This is the problem I'm trying to solve:
My plan was to use a simple element modified event, find out if an object was modified, and if the paint was modified, then do some checking to craft may alert. To do this it seems like I'll need to register an element modified event each time a project or family is opened, so I'd do that with a DocumentOpened event. So I'm guessing I'd do that in the Application.cs code where the ribbon is defined?
I don't even know if the event response will give me enough information to determine if a material was applied so I feel like I'm groping in the dark. Some experienced advice would be most appreciated.
Regards,
James