"Type Properties" with preview on, triggers add new views in Revit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have a trigger to track when user adds a new view, when the view is added it trigger a naming tool to help user naming the views in a specifc way.
My problem is that Revit also creates some kind of internal views when “Type Properties” dialog is opened with Preview shown.
On the attached picture of "Type Properties" dialog, all the views are created temporary for showing the family.
When Revit creates those views it also triggers the add new view code.
How do I distinguish between views made for this “Type Properties” dialog and views created by users in Revit?
The code line for adding the trigger:
UpdaterRegistry.AddTrigger(updaterClass.GetUpdaterId(), New ElementClassFilter(GetType(View)), Element.GetChangeTypeElementAddition)
(This problem is currently in Revit 2018.)