- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
To set the parameter value I need to iterate through all the Parameters for single parameter it is fine, but I have to edit multiple parameters for in one go than looping is not feasible as it takes too long and I need to loop to fecth each paramter say Height, Width, ....
Is there any simple way one liner code that will solve the purpose instead of looping.
example:
My Excel looks like this with three columns Type, Height, Width ,...
Type:Height:Width
Wall:2000:3000
Wall2:2343:3545
Present Code I am using for single parameter but if parameters increase its tough
foreach (Parameter Param in symbol.Parameters)
{
using (Transaction t = new Transaction(document, "Set Parameter"))
{ t.Start();
if (Param.Definition.Name == "Height"){
//TaskDialog.Show("DFF",Param.Definition.Name.ToString());
Param.SetValueString("2000");
t.Commit();
}
}
}
Solved! Go to Solution.