Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
A tool i'm building has a TreeView Control (Telerik RadTreeView) which will show all element instances in a Project/Active/Selection. The problem is that even with UI Virtualization the window load times are far too long. I'm not sure what to suspect now and am hoping one of the community has ran across this.
Some examples of window load times below.
- Project with around 150,000 model Element Instances it takes about 2 minutes to build.
- Project with around 66,000 model Element Instances it takes about a minute to build
- Project with less than 400 model Element Instances it takes about 5 seconds to build
Here is some additional pertinent information .
- I'm using WPF / XAML / MVVM / C# to build it.
- Ive timed the Filtered Element Collectors and found they are incredible fast and dont seem to be the issue.
- Ive submitted a support ticket to Telerik which only confirmed that the code should be working and does outside of Revit where I can create 180000 objects into 4 tiers in seconds.
- There are 4 tiers (See screenshot 1) of data arranged in the following manner
- Tier 1: Category
- Tier 2: Family Name
- Tier 3: Type
- Tier 4: Instance
- Tier 3: Type
- Tier 2: Family Name
- Tier 1: Category
- The TreeView is initially fully collapsed with only the first tier showing.
- Ive enabled UI Virtualization to show more as a user expands each node.
- Ive attached a zip file with the code in question
Screenshot #1
Screenshot #2
Solved! Go to Solution.