We often have to work in multiple disciplines inside of one model and often forget to change our worksets.
Having a hook script for right after “create similar or create instance” but before picking a host or whatever, have a script that can run and check the category, workset, current view, whatever we want and possibly stop the current action and prompt the user that they were about to make a mistake.
Looking at the revit API maybe the only way to do this is via the DocumentChanged event, but that would only trigger after the transaction has completed?
Was curious if anyone else had tried to accomplish something like this.