Update Nice3point.Revit.Extensions - #84
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the centrally-managed NuGet package versions for Nice3point.Revit.Extensions across supported Revit year conditions in Directory.Packages.props, keeping this toolkit aligned with the latest patch releases of the extensions library.
Changes:
- Bumped
Nice3point.Revit.Extensionsfrom2021.5.3→2021.5.4 - Bumped
Nice3point.Revit.Extensionsfrom2022.5.3→2022.5.4 - Bumped
Nice3point.Revit.Extensionsfrom2023.5.3→2023.5.4 - Bumped
Nice3point.Revit.Extensionsfrom2024.3.3→2024.3.4 - Bumped
Nice3point.Revit.Extensionsfrom2025.2.3→2025.2.4 - Bumped
Nice3point.Revit.Extensionsfrom2026.1.3→2026.1.4 - Bumped
Nice3point.Revit.Extensionsfrom2027.0.3→2027.0.4
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.3→2021.5.42022.5.3→2022.5.42023.5.3→2023.5.42024.3.3→2024.3.42025.2.3→2025.2.42026.1.3→2026.1.42027.0.3→2027.0.4Release Notes
Nice3point/RevitExtensions (Nice3point.Revit.Extensions)
v2027.0.4Compare Source
Extensible storage units
A schema field of type
double,float,XYZ, orUVdeclares a spec, and every read and write of such a field names the unit the value is expressed in.SaveEntityandLoadEntitypassed no unit.They served string, integer, boolean,
ElementId, andGuidfields, and threw on everything measured.Storing a wall thickness used to drop out of the extensions:
Now the unit travels with the value:
element.SaveEntity(schema, data, fieldName, unitTypeId)element.LoadEntity<T>(schema, fieldName, unitTypeId)The unit must be compatible with the spec the field was built with, otherwise Revit rejects the call.
LoadEntityalso stops allocating an entity for an element that holds no data, and returns the default value directly.Agents can now use this directly using a skill: https://github.com/Nice3point/revit-skills
Identifier values
Revit 2024 widened
ElementIdfrom 32 to 64 bits.ValuereplacedIntegerValue, the constructor started taking anInt64, and the underlying type of theBuiltInCategoryandBuiltInParameterenumerations grew with it.A constant now converts into an identifier without losing anything.
A cast carries the same split.
(int)categorycompiles on either side of that boundary and names a different type on each, and an assembly built against the older API meets cast exceptions on the newer one.Reading the number behind an
ElementIdused to take a conditional:Now it is one call, and the value converts back:
BuiltInCategoryandBuiltInParameteruses the same convention:elementId.ToLong()builtInCategory.ToLong()builtInParameter.ToLong()value.ToElementId()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.