Hi,
How to I add shared parameter to a family or family symbol.
Family family = Helper.RevitHelper.FindElementByName(GVar.RDoc, typeof(Family), listBox_Family.SelectedValue.ToString()) as Family; listBox_FamilyTypes.Items.Add(family.Name.ToString()); FamilySymbol symbol = null; foreach (FamilySymbol s in family.Symbols) { symbol = s; listBox_FamilyTypes.Items.Add("==" + symbol.Name.ToString() + "==" + (s.Category.Id.ToString())); }
in the above code just trying to get the family and family types under that.
Now I need to add non editable parameter to the family or family type.
how do it do it. I searched everywhere only thing i can find is family instance or builtin categories.
How do i specify a family or family symbol and add shared parameter to it.
Dear Raghulan,
Apparently, you did not search enough.
A large number of samples are available, both online and in the Revit SDK.
Here are some classes and methods to look for:
To save you the trouble, here one of my more recent samples implementing the entire process:
http://thebuildingcoder.typepad.com/blog/2013/12/driving-cnc-fabrication-and-shared-parameters.html
I hope this helps.
Best regards,
Jeremy