mastoron.parameter¶
- GetKey(element, parameter, isInstance, type)[source]¶
Gets the value of given parameter from either the given element or its type.
- Parameters
element (object) – A Revit element
parameter (string) – The name of the parameter
isInstance (bool) – True for instance parameters, False for type parameters
type (string) – The type of the parameter (Area, Number, Length, etc…)
- Returns
The value of the parameter
- Return type
string
- ProcessOptions(elements, staticParams=None)[source]¶
Generates a list of all shared paramters from a given set of elements. The output of this function is intended to be used with the CommandSwitchWindow from pyRevit forms.
- Parameters
elements (object) – A list of Revit elements
- Returns
A list of strings
- Return type
dict