Extensions - jeremytammik/RevitLookup GitHub Wiki

RevitLookup allows you to add new methods from the API and other libraries using extensions. Extensions are usually used to add additional functions to the Revit user interface, which simplifies working with the API.

Note: The available extensions may vary depending on the version of RevitLookup you are using.

The table below lists the extensions that are available in RevitLookup:

Type Extension Description Source
Element CanBeMirrored Determines whether element can be mirrored External
Element GetJoinedElements Returns all elements joined to given element External
Parameter AsBool Provides access to the boolean value within the parameter External
Parameter AsColor Provides access to the Color within the parameter External
Parameter GetAssociatedFamilyParameter Gets the associated family parameter of an element parameter RevitLookup
HostObject GetBottomFaces Returns the bottom faces for the host object External
HostObject GetTopFaces Returns the top faces for the host object External
HostObject GetSideFaces Returns the major side faces for the host object. External
Schema GetElements Returns all elements matched to this schema RevitLookup
Category GetElements Returns all elements matched to this category RevitLookup
Color Name Gets the exact or approximate name of the color RevitLookup
Color [Formats pack] Set of extensions for converting color to different formats RevitLookup
ForgeTypeId ToLabel Returns user visible label RevitLookup
ForgeTypeId IsSymbol Checks whether a ForgeTypeId identifies a spec RevitLookup
ForgeTypeId IsUnit Checks whether a ForgeTypeId identifies a unit RevitLookup