Skip to content

Conversation

clairekuang
Copy link
Member

@clairekuang clairekuang commented Mar 14, 2025

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:

  • revit converter

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:
    image

  • objects without level:
    image

Validation of changes:

Sent objects file and revit sample house

Checklist:

  • Update automate team on new class field

Copy link

linear bot commented Mar 14, 2025

@clairekuang clairekuang marked this pull request as draft March 14, 2025 19:33
@clairekuang clairekuang marked this pull request as ready for review March 17, 2025 11:25
Copy link

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 14.51%. Comparing base (be63b4a) to head (1e37ae1).
Report is 5 commits behind head on dev.

Files with missing lines Patch % Lines
...e.Converters.RevitShared/Helpers/LevelExtractor.cs 0.00% 9 Missing ⚠️
...TopLevel/RevitElementTopLevelConverterToSpeckle.cs 0.00% 4 Missing ⚠️
...ckle.Converters.RevitShared/ServiceRegistration.cs 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


public LevelExtractor() { }

public string? GetLevel(DB.Element element)
Copy link
Member

@oguzhankoral oguzhankoral Mar 17, 2025

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.

Copy link
Contributor

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!

@oguzhankoral oguzhankoral merged commit 9d5ff85 into dev Mar 17, 2025
5 checks passed
@oguzhankoral oguzhankoral deleted the claire/cnx-1413-add-level-property-to-revitobject branch March 17, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants