Once a material parameter is set in a family is there a way to set it back to <ByCategory> via API?
The parameter.set method takes an ElementID, but won't take 'Nothing' as an argument...
|
Once a material parameter is set in a family is there a way to set it back to <ByCategory> via API?
The parameter.set method takes an ElementID, but won't take 'Nothing' as an argument...
Last edited by sfaust; 2011-04-14 at 05:31 PM.
Did you every find out how to do this? I'm looking to do the same thing.
Regards,
Brett
If I remember correctly you'll need to create an element id with a value of -1 and set the parameter value to that id. So if you had the Parameter object named 'param' it would be something like this:
ElementId id = new ElementId(-1);
param.Set(id);
-Tim
5 versions later (2016), you can just type in <By Category> (exactly like that) and it will change it back.