
Not applicable
01-06-2016
03:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I’m using parameter.set to set the material of collected elements.
But the processes seems kinds slow compare to set the value from the Revit properties panel manually.
especially for larger amount of elements(like more than 100 columns)the processing takes a long time.
Is there anyways to make the code run faster? Thanks
Here is my current code:
using (Transaction t = new Transaction(doc, "Set Parameter")) { foreach(Element e in elementSet) { Parameter matPara = e.get_Parameter(BuiltInParameter.STRUCTURAL_MATERIAL_PARAM); t.Start(); matPara.Set(new ElementId(newMatId)); t.Commit(); } }
Solved! Go to Solution.