Message 1 of 15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need to add a new parameter to an element (an family instance in this case). First of all, is it possible to add the parameter only to the element and not for the whole family ?
I have tried to add a new parameter to a family called "family" using the below code but it does not work. I get "Parameter type is not accessible..."
Document famdoc = Doc.EditFamily(family);
using (Transaction t = new Transaction(famdoc, "CreateParameters"))
{
t.Start();
FamilyParameter FamParam = famdoc.FamilyManager.AddParameter("My Parameter", BuiltInParameterGroup.PG_DATA, ParameterType.Text, true);
t.Commit();
}
Any ideas why this approach does not work ?
Solved! Go to Solution.