- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am following Jeremy's post on https://jeremytammik.github.io/tbc/a/1850_material_level_pixel.html to create material and apply te...
The part with AppearanceAssetEditScope start and Commit takes almost 0.7 second.
The speed doesn't seem to change with number of materials.
On my test 100 materials take around 74 seconds and 1000 materials take around 737 seconds.
Typically, we need to create more than 200 materials, which takes more than 2 minutes but worst case scenarios have 1400 materials which is taking more than 15 minutes.
The model size doesn't seem to have any affect as it takes similar time in empty model and model with objects.
I have created a minimal example on github.
https://github.com/jnbagale/RevitMaterialTexture/tree/master/RevitMaterialTexture
A dll built for Revit 2021 and Revit 2022 and the .addin files are included there as well.
To run simply click on the Create Materials with texture button on the toolbar menu for the addin.
Any suggestions on how to improve the speed or if I am doing anything wrong which is affecting the speed will be hugely appreciated. I am using the materials to show results of daylight calculations and the material part is now taking longer than the actual calculation.
Regards
Jiva
Solved! Go to Solution.