-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(revit): handles plane origin out of bounds and creating group with no elements exceptions #346
fix(revit): handles plane origin out of bounds and creating group with no elements exceptions #346
Conversation
…p when no objects have been successfully converted also makes room display values transparent
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #346 +/- ##
========================================
- Coverage 8.48% 8.44% -0.04%
========================================
Files 237 237
Lines 4642 4663 +21
Branches 514 514
========================================
Hits 394 394
- Misses 4232 4253 +21
Partials 16 16 ☔ View full report in Codecov by Sentry. |
if (_elementIdsForTopLevelGroup.Count == 0) | ||
// if no elements were successfully converted, instead of throwing when creating a new group, we should just return and let object conversion exceptions bubble up. |
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.
You may need to walk me through this
@@ -209,4 +213,21 @@ private bool SkipGeometry(DB.GeometryObject geomObj, DB.Element element) | |||
|
|||
return false; | |||
} | |||
|
|||
// Determines if an element should be sent with invisible display values | |||
private bool SetElementDisplayToTransparent(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.
Naming is a bit confusing, could be ShouldSetElement...
instead?
Current seems to imply the method does in fact set something.
@@ -8,13 +8,25 @@ | |||
namespace Speckle.Converters.RevitShared.ToSpeckle; | |||
|
|||
public class MeshByMaterialDictionaryToSpeckle | |||
: ITypedConverter<(Dictionary<DB.ElementId, List<DB.Mesh>> target, DB.ElementId parentElementId), List<SOG.Mesh>> | |||
: ITypedConverter< | |||
(Dictionary<DB.ElementId, List<DB.Mesh>> target, DB.ElementId parentElementId, bool makeTransparent), |
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.
We really should have a type for this tuple 🙂
…nt-is-required-parameter-name
(exceptions)
before:
after:
(rooms)
before:
https://latest.speckle.systems/projects/3f895e614f/models/a78e96e0a8@1b0859bb04
after:
https://latest.speckle.systems/projects/3f895e614f/models/a78e96e0a8@347cd6f726