-
Notifications
You must be signed in to change notification settings - Fork 27
feat(revit): adds level extractor and levels to revit objects #679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(revit): adds level extractor and levels to revit objects #679
Conversation
…ttps://github.com/specklesystems/speckle-sharp-connectors into claire/cnx-1413-add-level-property-to-revitobject
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #679 +/- ##
==========================================
- Coverage 15.45% 14.51% -0.95%
==========================================
Files 230 232 +2
Lines 4606 4906 +300
Branches 551 606 +55
==========================================
Hits 712 712
- Misses 3866 4166 +300
Partials 28 28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
||
public LevelExtractor() { } | ||
|
||
public string? GetLevel(DB.Element element) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjoernsteinhagen once we merge this PR in, we should reconsider this class bv of ID management on cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sir, thanks for the ping!
Description
Adds
level
string (name of the level) to all revit objects. Uses a level extractor class with a cache to do so. This pr is dependent on specklesystems/speckle-sharp-sdk#257 and should be updated with new nugets when sdk pr is merged in.User Value
Automations relying on
level
can now be updated to check the revitobject property directly.Changes:
To-do before merge:
Screenshots:
Sample commit from revit objects file: https://latest.speckle.systems/projects/2295cb26a0/models/33bb362eab@f32aa46a6d
Sample commit from revit sample house: https://latest.speckle.systems/projects/3f895e614f/models/6a8a0f233d@8d1548dda6
objects with level:

objects without level:

Validation of changes:
Sent objects file and revit sample house
Checklist: