I'd like to know if a given FamilyParameter is a system parameter that cannot be removed. How to do that?
Solved! Go to Solution.
Solved by Revitalizer. Go to Solution.
Solved by jeremytammik. Go to Solution.
Please correct me if I am wrong or misunderstanding something.
Afaik, a family parameter is never a built-in parameter.
A family parameter has been defined by the family definition in an RFA file.
Unfortunately, it can only be identified by the user display name.
A built-in parameter can always be identified by the built-in parameter enum.
Here is what I learn by browsing the Revit API help file RevitAPI.chm:
Both have a parameter definition; the Definition object is a base object for all type of parameter definitions within the Autodesk Revit API.
The definition is either an ExternalDefinition or an InternalDefinition.
Try casting to those to find out.
The InternalDefinition has a BuiltInParameter property.
The ExternalDefinition object adds properties specific to Autodesk Revit shared parameter definitions.
I hope this helps.
Cheers,
Jeremy
Hi Jeremy,
a FamilyParameter can indeed be a BuiltInParameter.
FamilyParameter.Definition is an InternalDefinition.
Its BuiltInParameter property is either invalid or a valid BuiltInParameter value.
Cheers,
Rudi
Hi,
didn't read that you already wrote:
"The definition is either an ExternalDefinition or an InternalDefinition.
Try casting to those to find out.
The InternalDefinition has a BuiltInParameter property."
That's the solution, already.
Rudi
Can't find what you're looking for? Ask the community or share your knowledge.