API Parameter type is it a Revit, Project, Shared, Family
API Parameter type is it a Revit, Project, Shared, Family. Currently this is very hard to work out. It should be simple. A process of elimination gets allows you to work out which type a parameter is, but causes slow code. Across these types of parameters, a Name can be the same, and the instance/type, and the type i.e.
Parameter name - Parameter type - Instance/Type - Type
Mark - Revit - Type - Text
Mark - Project - Type - Text
Mark - Shared - Type - Text
Mark - Family - Type - Text
or
Parameter name - Parameter type - Instance/Type - Type
Mark - Revit - Type - Text
Mark - Project - Instance - Integer
Mark - Shared - Type - Text
Mark - Family - Instance - Number
The combinations are many, making it very hard to work out which parameter is which, displaying them in a list, and then getting the right one back and populating it.
Again this is all possible within the current realm of the API, but the overhead in checks is crazy.