Remove family type parameter

Remove family type parameter

Anonymous
Not applicable
2,034 Views
3 Replies
Message 1 of 4

Remove family type parameter

Anonymous
Not applicable

Hello. I know, that Revit Api allows me to create custom parameters in .rfa files and set their values. For example:

 

 

foreach (var type in neededFamTypes)
{
    familyManager.CurrentType = type;
    familyManager.Set(myStringParameter, "myValue");             
}

 

 

Of course if I call type.HasValue(myStringParameter)  it will return true. But how can I delete paramter from type (not from whole family)? Something like  familyManager.Unset(myStringParameter) , and type.HasValue(myStringParameter) should return false then?

 

0 Likes
Accepted solutions (1)
2,035 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

 

I am not sure that you can add a parameter to only one type and not have it appear on others as well.

 

Can you?

 

To remove a family a parameter, I only see the FamilyManager.RemoveParameter method, which removes an existing family parameter from the entire family.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

Thank you Jeremy. 

0 Likes
Message 4 of 4

mandy.changA2ADQ
Community Visitor
Community Visitor

Remove family type parameter where can i get it? (at Dynamo)

0 Likes