Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the centrally-managed Nice3point.Revit.Extensions package versions (per Revit year) to the latest preview.2 builds, aligning the toolkit’s dependency set with the newer RevitExtensions releases.
Changes:
- Bump
Nice3point.Revit.Extensionspinned versions for Revit 2021–2027 from*-preview.1.20260120to*-preview.2.20260310.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2021.5.0-preview.1.20260120→2021.5.0-preview.2.202603102022.5.0-preview.1.20260120→2022.5.0-preview.2.202603102023.5.0-preview.1.20260120→2023.5.0-preview.2.202603102024.3.0-preview.1.20260120→2024.3.0-preview.2.202603102025.2.0-preview.1.20260120→2025.2.0-preview.2.202603102026.1.0-preview.1.20260120→2026.1.0-preview.2.202603102027.0.0-preview.1.20260120→2027.0.0-preview.2.20260310Release Notes
Nice3point/RevitExtensions (Nice3point.Revit.Extensions)
v2027.0.0-preview.2.20260310Compare Source
This update focuses on improved API design through C# 14 extension methods syntax, .NET 10 support, Revit 2027 support, and ElementId overloads.
New Features
Application Extensions:
application.AsControlledApplication()- creates aControlledApplicationfrom anApplicationinstanceUIApplication Extensions:
uiApplication.AsControlledApplication()- creates aUIControlledApplicationfrom aUIApplicationinstanceBuiltInCategory Extensions
builtInCategory.ToCategory(Document document)- creates a a Revit Category object from BuiltInCategory valuebuiltInCategory.ToElementId()- creates an ElementId handle from a BuiltInCategory valueBuiltInParameter Extensions
builtInParameter.ToParameter(Document document)- creates a Revit Parameter object from BuiltInParameter valuebuiltInParameter.ToElementId()- creates an ElementId handle from a BuiltInParameter valueRibbon Extensions:
pushButton.TryAddShortcuts(string representation)- attempts to add keyboard shortcuts, returnsfalseif shortcuts conflict with existing commandspushButton.TryAddShortcuts(params IEnumerable<string> shortcuts)- attempts to add multiple keyboard shortcuts with conflict detectionElementId Extension Overloads
Added comprehensive ElementId overloads for all extension methods that work with
element.Documentandelement.Id.This allows working directly with ElementId when you don't have the Element instance.
DocumentValidationExtensions
elementId.CanBeDeleted(Document document)ElementTransformUtilsExtensions
elementId.CanBeMirrored(Document document)elementId.Copy(Document document, XYZ vector)elementId.Copy(Document document, double deltaX, double deltaY, double deltaZ)elementId.Mirror(Document document, Plane plane)elementId.Move(Document document, double deltaX, double deltaY, double deltaZ)elementId.Move(Document document, XYZ vector)elementId.Rotate(Document document, Line axis, double angle)FamilyUtilsExtensions
elementId.CanBeConvertedToFaceHostBased(Document document)elementId.ConvertToFaceHostBased(Document document)WorksharingUtilsExtensions
elementId.GetCheckoutStatus(Document document)elementId.GetCheckoutStatus(Document document, out string owner)elementId.GetWorksharingTooltipInfo(Document document)elementId.GetModelUpdatesStatus(Document document)AnalyticalToPhysicalAssociationManagerExtensions
elementId.IsAnalyticalElement(Document document)elementId.IsPhysicalElement(Document document)GlobalParametersManagerExtensions
elementId.MoveGlobalParameterUpOrder(Document document)elementId.MoveGlobalParameterDownOrder(Document document)Usage examples:
Improvements
Breaking changes
The following boolean methods have been converted to properties for improved syntax and consistency with modern C# conventions:
Renamed Methods (Revit API naming consistency):
Namespace change for UI Extensions:
Ribbon and UIApplication extensions have been moved to a dedicated namespace to support proper type resolution in no-UI scenarios:
Nice3point.Revit.Extensions→Nice3point.Revit.Extensions.UIAffected classes:
RibbonExtensions,ContextMenuExtensions,UiApplicationExtensions.Obsolete methods with auto-conversion:
Old method names are marked as
[Obsolete]with[CodeTemplate]attributes for automatic IDE conversion to new names.Migration examples:
Full changelog: Nice3point/RevitExtensions@2027.0.0-preview.1.20260120...2027.0.0-preview.2.20260310
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.