-
Notifications
You must be signed in to change notification settings - Fork 300
Extensions
Nice3point edited this page Sep 22, 2024
·
17 revisions
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 | Link |
Element | GetJoinedElements | Returns all elements joined to given element | Link |
Element | GetCuttingSolids | Gets all the solids which cut the input element | Link |
Element | GetSolidsBeingCut | Get all the solids which are cut by the input element | Link |
Element | IsAllowedForSolidCut | Validates that the element is eligible for a solid-solid cut | Link |
Element | IsElementFromAppropriateContext | Validates that the element is from an appropriate document | Link |
Element | GetCheckoutStatus | Gets the ownership status of an element | Link |
Element | GetWorksharingTooltipInfo | Gets worksharing information about an element to display in an in-canvas tooltip | Link |
Element | GetModelUpdatesStatus | Gets the status of a single element in the central model | Link |
Element | AreElementsValidForCreateParts | Identifies if the given elements can be used to create parts | Link |
Parameter | AsBool | Provides access to the boolean value within the parameter | Link |
Parameter | AsColor | Provides access to the Color within the parameter | Link |
Parameter | GetAssociatedFamilyParameter | Gets the associated family parameter of an element parameter | Link |
HostObject | GetBottomFaces | Returns the bottom faces for the host object | Link |
HostObject | GetTopFaces | Returns the top faces for the host object | Link |
HostObject | GetSideFaces | Returns the major side faces for the host object. | Link |
Pipe | HasOpenConnector | Checks if there is open piping connector for the pipe. | Link |
Schema | GetElements | Returns all elements matched to this schema | Link |
Category | GetElements | Returns all elements matched to this category | Link |
Color | Name | Gets the exact or approximate name of the color | Link |
Color | HEX | Convert color to this format | Link |
Color | HSL | Convert color to this format | Link |
Color | CMYK | Convert color to this format | Link |
ForgeTypeId | ToLabel | Returns user visible label | Link |
ForgeTypeId | IsSymbol | Checks whether a ForgeTypeId identifies a spec | Link |
ForgeTypeId | IsUnit | Checks whether a ForgeTypeId identifies a unit | Link |
Solid | SplitVolumes | Splits a solid geometry into several separate solids | Link |
Solid | IsValidForTessellation | Tests if the input solid or shell is valid for tessellation | Link |
FamilyInstance | GetInstancePlacementPointElementRefIds | Gets Placement Adaptive Point Element Ref ids to which the instance geometry adapts. | Link |
FamilyInstance | IsAdaptiveComponentInstance | Verifies if a FamilyInstance is an Adaptive Component Instance | Link |
Family | GetFamilySizeTableManager | Gets a FamilySizeTableManager from a Family | Link |
Family | FamilyCanConvertToFaceHostBased | Indicates whether the family can be converted to face host based. | Link |
Family | GetProfileSymbols | Gets the profile Family Symbols. | Link |
LightFamily | GetLightTypeName | Return the name for the light type. | Link |
LightFamily | GetLightType | Return a LightType object for the light type. | Link |
Application | GetFormulaFunctions | Gets list of function names supported by formula engine | Link |
Application | GetFormulaOperators | Gets list of operator names supported by formula engine | Link |
Application | GetMacroManager | Gets the Macro manager from the application. | Link |
BoundingBoxXYZ | Centroid | Gets the bounding box center point | Link |
BoundingBoxXYZ | Vertices | Gets list of bounding box vertices | Link |
BoundingBoxXYZ | Volume | Evaluate bounding box volume | Link |
BoundingBoxXYZ | SurfaceArea | Evaluate bounding box surface area | Link |
Document | GetAllGlobalParameters | Returns all global parameters available in the given document | Link |
Document | GetLightGroupManager | Creates a light group manager object from the given document | Link |
Document | GetTemporaryGraphicsManager | Gets a TemporaryGraphicsManager reference of the document. | Link |
Document | GetAnalyticalToPhysicalAssociationManager | Returns the AnalyticalToPhysicalAssociationManager for this document. | Link |
Document | GetFamilySizeTableManager | Gets a FamilySizeTableManager from a Family. | Link |
Document | GetLightFamily | Creates a light family object from the family document. | Link |
Document | GetMacroManager | Gets the Macro manager from the document. | Link |
UIApplication | CurrentTheme | Gets a current theme. | Link |
UIApplication | CurrentCanvasTheme | Gets a current canvas theme. | Link |
UIApplication | FollowSystemColorTheme | Indicate if the overall theme follows operating system color theme. | Link |
View | GetSpatialFieldManager | Retrieves manager object for the given view | Link |
Part | IsMergedPart | Is the Part the result of a merge. | Link |
Part | IsPartDerivedFromLink | Is the Part derived from link geometry | Link |
Part | GetChainLengthToOriginal | Calculates the length of the longest chain of divisions/ merges to reach to an original non-Part element that is the source of the tested part | Link |
Part | GetMergedParts | Retrieves the element ids of the source elements of a merged part | Link |
Part | ArePartsValidForDivide | Identifies if provided members are valid for dividing parts | Link |
Part | FindMergeableClusters | Segregates a set of elements into subsets which are valid for merge | Link |
Part | ArePartsValidForMerge | Identifies whether Part elements may be merged | Link |
Part | GetAssociatedPartMaker | Gets associated PartMaker for an element | Link |
Part | GetSplittingCurves | Identifies the curves that were used to create the part | Link |
Part | GetSplittingElements | Identifies the elements ( reference planes, levels, grids ) that were used to create the part | Link |
Part | HasAssociatedParts | Checks if an element has associated parts | Link |
PartMaker | GetPartMakerMethodToDivideVolumeFW | Obtains the object allowing access to the divided volume properties of the PartMaker | Link |